Class: Ice::ACM
Instance Attribute Summary collapse
-
#close ⇒ Object
Returns the value of attribute close.
-
#heartbeat ⇒ Object
Returns the value of attribute heartbeat.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(timeout = 0, close = ::Ice::ACMClose::CloseOff, heartbeat = ::Ice::ACMHeartbeat::HeartbeatOff) ⇒ ACM
constructor
A new instance of ACM.
Methods included from Inspect_mixin
Constructor Details
#initialize(timeout = 0, close = ::Ice::ACMClose::CloseOff, heartbeat = ::Ice::ACMHeartbeat::HeartbeatOff) ⇒ ACM
Returns a new instance of ACM.
220 221 222 223 224 |
# File 'lib/Ice/Connection.rb', line 220 def initialize(timeout=0, close=::Ice::ACMClose::CloseOff, heartbeat=::Ice::ACMHeartbeat::HeartbeatOff) @timeout = timeout @close = close @heartbeat = heartbeat end |
Instance Attribute Details
#close ⇒ Object
Returns the value of attribute close.
246 247 248 |
# File 'lib/Ice/Connection.rb', line 246 def close @close end |
#heartbeat ⇒ Object
Returns the value of attribute heartbeat.
246 247 248 |
# File 'lib/Ice/Connection.rb', line 246 def heartbeat @heartbeat end |
#timeout ⇒ Object
Returns the value of attribute timeout.
246 247 248 |
# File 'lib/Ice/Connection.rb', line 246 def timeout @timeout end |
Instance Method Details
#==(other) ⇒ Object
234 235 236 237 238 239 240 |
# File 'lib/Ice/Connection.rb', line 234 def ==(other) return false if !other.is_a? ::Ice::ACM or @timeout != other.timeout or @close != other.close or @heartbeat != other.heartbeat true end |
#eql?(other) ⇒ Boolean
242 243 244 |
# File 'lib/Ice/Connection.rb', line 242 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
226 227 228 229 230 231 232 |
# File 'lib/Ice/Connection.rb', line 226 def hash _h = 0 _h = 5 * _h + @timeout.hash _h = 5 * _h + @close.hash _h = 5 * _h + @heartbeat.hash _h % 0x7fffffff end |