Class: IceGrid::AdapterInfo
- Inherits:
-
Object
- Object
- IceGrid::AdapterInfo
- Includes:
- Ice::Inspect_mixin
- Defined in:
- ruby/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.
116 117 118 119 120 |
# File 'ruby/IceGrid/Admin.rb', line 116 def initialize(id='', proxy=nil, replicaGroupId='') @id = id @proxy = proxy @replicaGroupId = replicaGroupId end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
142 143 144 |
# File 'ruby/IceGrid/Admin.rb', line 142 def id @id end |
#proxy ⇒ Object
Returns the value of attribute proxy.
142 143 144 |
# File 'ruby/IceGrid/Admin.rb', line 142 def proxy @proxy end |
#replicaGroupId ⇒ Object
Returns the value of attribute replicaGroupId.
142 143 144 |
# File 'ruby/IceGrid/Admin.rb', line 142 def replicaGroupId @replicaGroupId end |
Instance Method Details
#==(other) ⇒ Object
130 131 132 133 134 135 136 |
# File 'ruby/IceGrid/Admin.rb', line 130 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
138 139 140 |
# File 'ruby/IceGrid/Admin.rb', line 138 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
122 123 124 125 126 127 128 |
# File 'ruby/IceGrid/Admin.rb', line 122 def hash _h = 0 _h = 5 * _h + @id.hash _h = 5 * _h + @proxy.hash _h = 5 * _h + @replicaGroupId.hash _h % 0x7fffffff end |