Class: IceGrid::RegistryInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = '', hostname = '') ⇒ RegistryInfo

Returns a new instance of RegistryInfo.



301
302
303
304
# File 'lib/IceGrid/Admin.rb', line 301

def initialize(name='', hostname='')
    @name = name
    @hostname = hostname
end

Instance Attribute Details

#hostnameObject

Returns the value of attribute hostname.



328
329
330
# File 'lib/IceGrid/Admin.rb', line 328

def hostname
  @hostname
end

#nameObject

Returns the value of attribute name.



328
329
330
# File 'lib/IceGrid/Admin.rb', line 328

def name
  @name
end

Instance Method Details

#==(other) ⇒ Object



313
314
315
316
317
318
# File 'lib/IceGrid/Admin.rb', line 313

def ==(other)
    return false if !other.is_a? ::IceGrid::RegistryInfo or
        @name != other.name or
        @hostname != other.hostname
    true
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


320
321
322
# File 'lib/IceGrid/Admin.rb', line 320

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

#hashObject



306
307
308
309
310
311
# File 'lib/IceGrid/Admin.rb', line 306

def hash
    _h = 0
    _h = 5 * _h + @name.hash
    _h = 5 * _h + @hostname.hash
    _h % 0x7fffffff
end

#inspectObject



324
325
326
# File 'lib/IceGrid/Admin.rb', line 324

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