Class: IceGrid::DbEnvDescriptor
- Inherits:
-
Object
- Object
- IceGrid::DbEnvDescriptor
- Includes:
- Ice::Inspect_mixin
- Defined in:
- ruby/IceGrid/Descriptor.rb
Instance Attribute Summary collapse
-
#dbHome ⇒ Object
Returns the value of attribute dbHome.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#properties ⇒ Object
Returns the value of attribute properties.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(name = '', description = '', dbHome = '', properties = nil) ⇒ DbEnvDescriptor
constructor
A new instance of DbEnvDescriptor.
Methods included from Ice::Inspect_mixin
Constructor Details
#initialize(name = '', description = '', dbHome = '', properties = nil) ⇒ DbEnvDescriptor
Returns a new instance of DbEnvDescriptor.
206 207 208 209 210 211 |
# File 'ruby/IceGrid/Descriptor.rb', line 206 def initialize(name='', description='', dbHome='', properties=nil) @name = name @description = description @dbHome = dbHome @properties = properties end |
Instance Attribute Details
#dbHome ⇒ Object
Returns the value of attribute dbHome.
235 236 237 |
# File 'ruby/IceGrid/Descriptor.rb', line 235 def dbHome @dbHome end |
#description ⇒ Object
Returns the value of attribute description.
235 236 237 |
# File 'ruby/IceGrid/Descriptor.rb', line 235 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
235 236 237 |
# File 'ruby/IceGrid/Descriptor.rb', line 235 def name @name end |
#properties ⇒ Object
Returns the value of attribute properties.
235 236 237 |
# File 'ruby/IceGrid/Descriptor.rb', line 235 def properties @properties end |
Instance Method Details
#==(other) ⇒ Object
222 223 224 225 226 227 228 229 |
# File 'ruby/IceGrid/Descriptor.rb', line 222 def ==(other) return false if !other.is_a? ::IceGrid::DbEnvDescriptor or @name != other.name or @description != other.description or @dbHome != other.dbHome or @properties != other.properties true end |
#eql?(other) ⇒ Boolean
231 232 233 |
# File 'ruby/IceGrid/Descriptor.rb', line 231 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
213 214 215 216 217 218 219 220 |
# File 'ruby/IceGrid/Descriptor.rb', line 213 def hash _h = 0 _h = 5 * _h + @name.hash _h = 5 * _h + @description.hash _h = 5 * _h + @dbHome.hash _h = 5 * _h + @properties.hash _h % 0x7fffffff end |