Class: IceGrid::AdapterDynamicInfo

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) ⇒ AdapterDynamicInfo

Returns a new instance of AdapterDynamicInfo.



761
762
763
764
# File 'ruby/IceGrid/Admin.rb', line 761

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

Instance Attribute Details

#idObject

Returns the value of attribute id.



784
785
786
# File 'ruby/IceGrid/Admin.rb', line 784

def id
  @id
end

#proxyObject

Returns the value of attribute proxy.



784
785
786
# File 'ruby/IceGrid/Admin.rb', line 784

def proxy
  @proxy
end

Instance Method Details

#==(other) ⇒ Object



773
774
775
776
777
778
# File 'ruby/IceGrid/Admin.rb', line 773

def ==(other)
    return false if !other.is_a? ::IceGrid::AdapterDynamicInfo or
        @id != other.id or
        @proxy != other.proxy
    true
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


780
781
782
# File 'ruby/IceGrid/Admin.rb', line 780

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

#hashObject



766
767
768
769
770
771
# File 'ruby/IceGrid/Admin.rb', line 766

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