Class: IceGrid::DbEnvDescriptor
- Inherits:
-
Object
- Object
- IceGrid::DbEnvDescriptor
- 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.
- #inspect ⇒ Object
Constructor Details
#initialize(name = '', description = '', dbHome = '', properties = nil) ⇒ DbEnvDescriptor
Returns a new instance of DbEnvDescriptor.
234 235 236 237 238 239 |
# File 'lib/IceGrid/Descriptor.rb', line 234 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.
267 268 269 |
# File 'lib/IceGrid/Descriptor.rb', line 267 def dbHome @dbHome end |
#description ⇒ Object
Returns the value of attribute description.
267 268 269 |
# File 'lib/IceGrid/Descriptor.rb', line 267 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
267 268 269 |
# File 'lib/IceGrid/Descriptor.rb', line 267 def name @name end |
#properties ⇒ Object
Returns the value of attribute properties.
267 268 269 |
# File 'lib/IceGrid/Descriptor.rb', line 267 def properties @properties end |
Instance Method Details
#==(other) ⇒ Object
250 251 252 253 254 255 256 257 |
# File 'lib/IceGrid/Descriptor.rb', line 250 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
259 260 261 |
# File 'lib/IceGrid/Descriptor.rb', line 259 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
241 242 243 244 245 246 247 248 |
# File 'lib/IceGrid/Descriptor.rb', line 241 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 |
#inspect ⇒ Object
263 264 265 |
# File 'lib/IceGrid/Descriptor.rb', line 263 def inspect ::Ice::__stringify(self, T_DbEnvDescriptor) end |