Class: IceGrid::AdapterDynamicInfo
- Inherits:
-
Object
- Object
- IceGrid::AdapterDynamicInfo
- Defined in:
- lib/IceGrid/Observer.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(id = '', proxy = nil) ⇒ AdapterDynamicInfo
constructor
A new instance of AdapterDynamicInfo.
- #inspect ⇒ Object
Constructor Details
#initialize(id = '', proxy = nil) ⇒ AdapterDynamicInfo
Returns a new instance of AdapterDynamicInfo.
82 83 84 85 |
# File 'lib/IceGrid/Observer.rb', line 82 def initialize(id='', proxy=nil) @id = id @proxy = proxy end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
109 110 111 |
# File 'lib/IceGrid/Observer.rb', line 109 def id @id end |
#proxy ⇒ Object
Returns the value of attribute proxy.
109 110 111 |
# File 'lib/IceGrid/Observer.rb', line 109 def proxy @proxy end |
Instance Method Details
#==(other) ⇒ Object
94 95 96 97 98 99 |
# File 'lib/IceGrid/Observer.rb', line 94 def ==(other) return false if !other.is_a? ::IceGrid::AdapterDynamicInfo or @id != other.id or @proxy != other.proxy true end |
#eql?(other) ⇒ Boolean
101 102 103 |
# File 'lib/IceGrid/Observer.rb', line 101 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
87 88 89 90 91 92 |
# File 'lib/IceGrid/Observer.rb', line 87 def hash _h = 0 _h = 5 * _h + @id.hash _h = 5 * _h + @proxy.hash _h % 0x7fffffff end |
#inspect ⇒ Object
105 106 107 |
# File 'lib/IceGrid/Observer.rb', line 105 def inspect ::Ice::__stringify(self, T_AdapterDynamicInfo) end |