Class: IceGrid::DbEnvDescriptor

Inherits:
Object
  • Object
show all
Includes:
Ice::Inspect_mixin
Defined in:
ruby/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.



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

#dbHomeObject

Returns the value of attribute dbHome.



235
236
237
# File 'ruby/IceGrid/Descriptor.rb', line 235

def dbHome
  @dbHome
end

#descriptionObject

Returns the value of attribute description.



235
236
237
# File 'ruby/IceGrid/Descriptor.rb', line 235

def description
  @description
end

#nameObject

Returns the value of attribute name.



235
236
237
# File 'ruby/IceGrid/Descriptor.rb', line 235

def name
  @name
end

#propertiesObject

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

Returns:

  • (Boolean)


231
232
233
# File 'ruby/IceGrid/Descriptor.rb', line 231

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

#hashObject



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