Class: IceGrid::RegistryInfo
- Inherits:
-
Object
- Object
- IceGrid::RegistryInfo
- Includes:
- Ice::Inspect_mixin
- Defined in:
- ruby/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.
Methods included from Ice::Inspect_mixin
Constructor Details
#initialize(name = '', hostname = '') ⇒ RegistryInfo
Returns a new instance of RegistryInfo.
268 269 270 271 |
# File 'ruby/IceGrid/Admin.rb', line 268 def initialize(name='', hostname='') @name = name @hostname = hostname end |
Instance Attribute Details
#hostname ⇒ Object
Returns the value of attribute hostname.
291 292 293 |
# File 'ruby/IceGrid/Admin.rb', line 291 def hostname @hostname end |
#name ⇒ Object
Returns the value of attribute name.
291 292 293 |
# File 'ruby/IceGrid/Admin.rb', line 291 def name @name end |
Instance Method Details
#==(other) ⇒ Object
280 281 282 283 284 285 |
# File 'ruby/IceGrid/Admin.rb', line 280 def ==(other) return false if !other.is_a? ::IceGrid::RegistryInfo or @name != other.name or @hostname != other.hostname true end |
#eql?(other) ⇒ Boolean
287 288 289 |
# File 'ruby/IceGrid/Admin.rb', line 287 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
273 274 275 276 277 278 |
# File 'ruby/IceGrid/Admin.rb', line 273 def hash _h = 0 _h = 5 * _h + @name.hash _h = 5 * _h + @hostname.hash _h % 0x7fffffff end |