Class: IceGrid::AdapterInfo
- Inherits:
-
Object
- Object
- IceGrid::AdapterInfo
- Defined in:
- lib/IceGrid/Admin.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
-
#replicaGroupId ⇒ Object
Returns the value of attribute replicaGroupId.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(id = '', proxy = nil, replicaGroupId = '') ⇒ AdapterInfo
constructor
A new instance of AdapterInfo.
- #inspect ⇒ Object
Constructor Details
#initialize(id = '', proxy = nil, replicaGroupId = '') ⇒ AdapterInfo
Returns a new instance of AdapterInfo.
139 140 141 142 143 |
# File 'lib/IceGrid/Admin.rb', line 139 def initialize(id='', proxy=nil, replicaGroupId='') @id = id @proxy = proxy @replicaGroupId = replicaGroupId end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
169 170 171 |
# File 'lib/IceGrid/Admin.rb', line 169 def id @id end |
#proxy ⇒ Object
Returns the value of attribute proxy.
169 170 171 |
# File 'lib/IceGrid/Admin.rb', line 169 def proxy @proxy end |
#replicaGroupId ⇒ Object
Returns the value of attribute replicaGroupId.
169 170 171 |
# File 'lib/IceGrid/Admin.rb', line 169 def replicaGroupId @replicaGroupId end |
Instance Method Details
#==(other) ⇒ Object
153 154 155 156 157 158 159 |
# File 'lib/IceGrid/Admin.rb', line 153 def ==(other) return false if !other.is_a? ::IceGrid::AdapterInfo or @id != other.id or @proxy != other.proxy or @replicaGroupId != other.replicaGroupId true end |
#eql?(other) ⇒ Boolean
161 162 163 |
# File 'lib/IceGrid/Admin.rb', line 161 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
145 146 147 148 149 150 151 |
# File 'lib/IceGrid/Admin.rb', line 145 def hash _h = 0 _h = 5 * _h + @id.hash _h = 5 * _h + @proxy.hash _h = 5 * _h + @replicaGroupId.hash _h % 0x7fffffff end |
#inspect ⇒ Object
165 166 167 |
# File 'lib/IceGrid/Admin.rb', line 165 def inspect ::Ice::__stringify(self, T_AdapterInfo) end |