Class: IceGrid::DbEnvDescriptor
- Inherits:
-
Object
- Object
- IceGrid::DbEnvDescriptor
- Includes:
- Ice::Inspect_mixin
- Defined in:
- lib/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.
218 219 220 221 222 223 |
# File 'lib/IceGrid/Descriptor.rb', line 218 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.
247 248 249 |
# File 'lib/IceGrid/Descriptor.rb', line 247 def dbHome @dbHome end |
#description ⇒ Object
Returns the value of attribute description.
247 248 249 |
# File 'lib/IceGrid/Descriptor.rb', line 247 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
247 248 249 |
# File 'lib/IceGrid/Descriptor.rb', line 247 def name @name end |
#properties ⇒ Object
Returns the value of attribute properties.
247 248 249 |
# File 'lib/IceGrid/Descriptor.rb', line 247 def properties @properties end |
Instance Method Details
#==(other) ⇒ Object
234 235 236 237 238 239 240 241 |
# File 'lib/IceGrid/Descriptor.rb', line 234 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
243 244 245 |
# File 'lib/IceGrid/Descriptor.rb', line 243 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
225 226 227 228 229 230 231 232 |
# File 'lib/IceGrid/Descriptor.rb', line 225 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 |