Class: IceGrid::DbEnvDescriptor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dbHomeObject

Returns the value of attribute dbHome.



267
268
269
# File 'lib/IceGrid/Descriptor.rb', line 267

def dbHome
  @dbHome
end

#descriptionObject

Returns the value of attribute description.



267
268
269
# File 'lib/IceGrid/Descriptor.rb', line 267

def description
  @description
end

#nameObject

Returns the value of attribute name.



267
268
269
# File 'lib/IceGrid/Descriptor.rb', line 267

def name
  @name
end

#propertiesObject

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

Returns:

  • (Boolean)


259
260
261
# File 'lib/IceGrid/Descriptor.rb', line 259

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

#hashObject



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

#inspectObject



263
264
265
# File 'lib/IceGrid/Descriptor.rb', line 263

def inspect
    ::Ice::__stringify(self, T_DbEnvDescriptor)
end