Class: IceGrid::ObjectInfo
- Inherits:
-
Object
- Object
- IceGrid::ObjectInfo
- Defined in:
- lib/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.
- #inspect ⇒ Object
Constructor Details
#initialize(proxy = nil, type = '') ⇒ ObjectInfo
Returns a new instance of ObjectInfo.
97 98 99 100 |
# File 'lib/IceGrid/Admin.rb', line 97 def initialize(proxy=nil, type='') @proxy = proxy @type = type end |
Instance Attribute Details
#proxy ⇒ Object
Returns the value of attribute proxy.
124 125 126 |
# File 'lib/IceGrid/Admin.rb', line 124 def proxy @proxy end |
#type ⇒ Object
Returns the value of attribute type.
124 125 126 |
# File 'lib/IceGrid/Admin.rb', line 124 def type @type end |
Instance Method Details
#==(other) ⇒ Object
109 110 111 112 113 114 |
# File 'lib/IceGrid/Admin.rb', line 109 def ==(other) return false if !other.is_a? ::IceGrid::ObjectInfo or @proxy != other.proxy or @type != other.type true end |
#eql?(other) ⇒ Boolean
116 117 118 |
# File 'lib/IceGrid/Admin.rb', line 116 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
102 103 104 105 106 107 |
# File 'lib/IceGrid/Admin.rb', line 102 def hash _h = 0 _h = 5 * _h + @proxy.hash _h = 5 * _h + @type.hash _h % 0x7fffffff end |
#inspect ⇒ Object
120 121 122 |
# File 'lib/IceGrid/Admin.rb', line 120 def inspect ::Ice::__stringify(self, T_ObjectInfo) end |