Class: IceGrid::AdapterDynamicInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = '', proxy = nil) ⇒ AdapterDynamicInfo

Returns a new instance of AdapterDynamicInfo.



82
83
84
85
# File 'lib/IceGrid/Observer.rb', line 82

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

Instance Attribute Details

#idObject

Returns the value of attribute id.



109
110
111
# File 'lib/IceGrid/Observer.rb', line 109

def id
  @id
end

#proxyObject

Returns the value of attribute proxy.



109
110
111
# File 'lib/IceGrid/Observer.rb', line 109

def proxy
  @proxy
end

Instance Method Details

#==(other) ⇒ Object



94
95
96
97
98
99
# File 'lib/IceGrid/Observer.rb', line 94

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)


101
102
103
# File 'lib/IceGrid/Observer.rb', line 101

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

#hashObject



87
88
89
90
91
92
# File 'lib/IceGrid/Observer.rb', line 87

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

#inspectObject



105
106
107
# File 'lib/IceGrid/Observer.rb', line 105

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