Class: IceGrid::AdapterInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/IceGrid/Admin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



169
170
171
# File 'lib/IceGrid/Admin.rb', line 169

def id
  @id
end

#proxyObject

Returns the value of attribute proxy.



169
170
171
# File 'lib/IceGrid/Admin.rb', line 169

def proxy
  @proxy
end

#replicaGroupIdObject

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

Returns:

  • (Boolean)


161
162
163
# File 'lib/IceGrid/Admin.rb', line 161

def eql?(other)
    return other.class == self.class && other == self
end

#hashObject



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

#inspectObject



165
166
167
# File 'lib/IceGrid/Admin.rb', line 165

def inspect
    ::Ice::__stringify(self, T_AdapterInfo)
end