Class: IceGrid::DbEnvDescriptor

Inherits:
Object
  • Object
show all
Includes:
Ice::Inspect_mixin
Defined in:
lib/IceGrid/Descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Ice::Inspect_mixin

#inspect

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

#dbHomeObject

Returns the value of attribute dbHome.



247
248
249
# File 'lib/IceGrid/Descriptor.rb', line 247

def dbHome
  @dbHome
end

#descriptionObject

Returns the value of attribute description.



247
248
249
# File 'lib/IceGrid/Descriptor.rb', line 247

def description
  @description
end

#nameObject

Returns the value of attribute name.



247
248
249
# File 'lib/IceGrid/Descriptor.rb', line 247

def name
  @name
end

#propertiesObject

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

Returns:

  • (Boolean)


243
244
245
# File 'lib/IceGrid/Descriptor.rb', line 243

def eql?(other)
    return other.class == self.class && other == self
end

#hashObject



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