Class: IceGrid::RegistryInfo
- Inherits:
-
Object
- Object
- IceGrid::RegistryInfo
- Defined in:
- lib/IceGrid/Admin.rb
Instance Attribute Summary collapse
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(name = '', hostname = '') ⇒ RegistryInfo
constructor
A new instance of RegistryInfo.
- #inspect ⇒ Object
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
#hostname ⇒ Object
Returns the value of attribute hostname.
328 329 330 |
# File 'lib/IceGrid/Admin.rb', line 328 def hostname @hostname end |
#name ⇒ Object
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
320 321 322 |
# File 'lib/IceGrid/Admin.rb', line 320 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
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 |
#inspect ⇒ Object
324 325 326 |
# File 'lib/IceGrid/Admin.rb', line 324 def inspect ::Ice::__stringify(self, T_RegistryInfo) end |