Class: IceGrid::AdapterInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Ice::Inspect_mixin

#inspect

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

#idObject

Returns the value of attribute id.



154
155
156
# File 'lib/IceGrid/Admin.rb', line 154

def id
  @id
end

#proxyObject

Returns the value of attribute proxy.



154
155
156
# File 'lib/IceGrid/Admin.rb', line 154

def proxy
  @proxy
end

#replicaGroupIdObject

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

Returns:

  • (Boolean)


150
151
152
# File 'lib/IceGrid/Admin.rb', line 150

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

#hashObject



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