Class: IceGrid::AdapterInfo

Inherits:
Object
  • Object
show all
Includes:
Ice::Inspect_mixin
Defined in:
ruby/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.



115
116
117
118
119
# File 'ruby/IceGrid/Admin.rb', line 115

def initialize(id='', proxy=nil, replicaGroupId='')
    @id = id
    @proxy = proxy
    @replicaGroupId = replicaGroupId
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



141
142
143
# File 'ruby/IceGrid/Admin.rb', line 141

def id
  @id
end

#proxyObject

Returns the value of attribute proxy.



141
142
143
# File 'ruby/IceGrid/Admin.rb', line 141

def proxy
  @proxy
end

#replicaGroupIdObject

Returns the value of attribute replicaGroupId.



141
142
143
# File 'ruby/IceGrid/Admin.rb', line 141

def replicaGroupId
  @replicaGroupId
end

Instance Method Details

#==(other) ⇒ Object



129
130
131
132
133
134
135
# File 'ruby/IceGrid/Admin.rb', line 129

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)


137
138
139
# File 'ruby/IceGrid/Admin.rb', line 137

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

#hashObject



121
122
123
124
125
126
127
# File 'ruby/IceGrid/Admin.rb', line 121

def hash
    _h = 0
    _h = 5 * _h + @id.hash
    _h = 5 * _h + @proxy.hash
    _h = 5 * _h + @replicaGroupId.hash
    _h % 0x7fffffff
end