Class: IceGrid::AdapterInfo
- Inherits:
-
Object
- Object
- IceGrid::AdapterInfo
- Includes:
- Ice::Inspect_mixin
- 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.
Methods included from Ice::Inspect_mixin
Constructor Details
#initialize(id = '', proxy = nil, replicaGroupId = '') ⇒ AdapterInfo
Returns a new instance of AdapterInfo.
128 129 130 131 132 |
# File 'lib/IceGrid/Admin.rb', line 128 def initialize(id='', proxy=nil, replicaGroupId='') @id = id @proxy = proxy @replicaGroupId = replicaGroupId end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
154 155 156 |
# File 'lib/IceGrid/Admin.rb', line 154 def id @id end |
#proxy ⇒ Object
Returns the value of attribute proxy.
154 155 156 |
# File 'lib/IceGrid/Admin.rb', line 154 def proxy @proxy end |
#replicaGroupId ⇒ Object
Returns the value of attribute replicaGroupId.
154 155 156 |
# File 'lib/IceGrid/Admin.rb', line 154 def replicaGroupId @replicaGroupId end |
Instance Method Details
#==(other) ⇒ Object
142 143 144 145 146 147 148 |
# File 'lib/IceGrid/Admin.rb', line 142 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
150 151 152 |
# File 'lib/IceGrid/Admin.rb', line 150 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
134 135 136 137 138 139 140 |
# File 'lib/IceGrid/Admin.rb', line 134 def hash _h = 0 _h = 5 * _h + @id.hash _h = 5 * _h + @proxy.hash _h = 5 * _h + @replicaGroupId.hash _h % 0x7fffffff end |