Class: IceGrid::ObjectInfo
- Inherits:
-
Object
- Object
- IceGrid::ObjectInfo
- Includes:
- Ice::Inspect_mixin
- Defined in:
- ruby/IceGrid/Admin.rb
Instance Attribute Summary collapse
-
#proxy ⇒ Object
Returns the value of attribute proxy.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(proxy = nil, type = '') ⇒ ObjectInfo
constructor
A new instance of ObjectInfo.
Methods included from Ice::Inspect_mixin
Constructor Details
#initialize(proxy = nil, type = '') ⇒ ObjectInfo
Returns a new instance of ObjectInfo.
76 77 78 79 |
# File 'ruby/IceGrid/Admin.rb', line 76 def initialize(proxy=nil, type='') @proxy = proxy @type = type end |
Instance Attribute Details
#proxy ⇒ Object
Returns the value of attribute proxy.
99 100 101 |
# File 'ruby/IceGrid/Admin.rb', line 99 def proxy @proxy end |
#type ⇒ Object
Returns the value of attribute type.
99 100 101 |
# File 'ruby/IceGrid/Admin.rb', line 99 def type @type end |
Instance Method Details
#==(other) ⇒ Object
88 89 90 91 92 93 |
# File 'ruby/IceGrid/Admin.rb', line 88 def ==(other) return false if !other.is_a? ::IceGrid::ObjectInfo or @proxy != other.proxy or @type != other.type true end |
#eql?(other) ⇒ Boolean
95 96 97 |
# File 'ruby/IceGrid/Admin.rb', line 95 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
81 82 83 84 85 86 |
# File 'ruby/IceGrid/Admin.rb', line 81 def hash _h = 0 _h = 5 * _h + @proxy.hash _h = 5 * _h + @type.hash _h % 0x7fffffff end |