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.



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

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#proxyObject

Returns the value of attribute proxy.



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

def proxy
  @proxy
end

#replicaGroupIdObject

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

Returns:

  • (Boolean)


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

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

#hashObject



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