Class: Ice::Current
- Inherits:
-
Object
- Object
- Ice::Current
- Includes:
- Inspect_mixin
- Defined in:
- lib/Ice/Current.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#con ⇒ Object
Returns the value of attribute con.
-
#ctx ⇒ Object
Returns the value of attribute ctx.
-
#encoding ⇒ Object
Returns the value of attribute encoding.
-
#facet ⇒ Object
Returns the value of attribute facet.
-
#id ⇒ Object
Returns the value of attribute id.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#operation ⇒ Object
Returns the value of attribute operation.
-
#requestId ⇒ Object
Returns the value of attribute requestId.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(adapter = nil, con = nil, id = ::Ice::Identity.new, facet = '', operation = '', mode = ::Ice::OperationMode::Normal, ctx = nil, requestId = 0, encoding = ::Ice::EncodingVersion.new) ⇒ Current
constructor
A new instance of Current.
Methods included from Inspect_mixin
Constructor Details
#initialize(adapter = nil, con = nil, id = ::Ice::Identity.new, facet = '', operation = '', mode = ::Ice::OperationMode::Normal, ctx = nil, requestId = 0, encoding = ::Ice::EncodingVersion.new) ⇒ Current
Returns a new instance of Current.
82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/Ice/Current.rb', line 82 def initialize(adapter=nil, con=nil, id=::Ice::Identity.new, facet='', operation='', mode=::Ice::OperationMode::Normal, ctx=nil, requestId=0, encoding=::Ice::EncodingVersion.new) @adapter = adapter @con = con @id = id @facet = facet @operation = operation @mode = mode @ctx = ctx @requestId = requestId @encoding = encoding end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
126 127 128 |
# File 'lib/Ice/Current.rb', line 126 def adapter @adapter end |
#con ⇒ Object
Returns the value of attribute con.
126 127 128 |
# File 'lib/Ice/Current.rb', line 126 def con @con end |
#ctx ⇒ Object
Returns the value of attribute ctx.
126 127 128 |
# File 'lib/Ice/Current.rb', line 126 def ctx @ctx end |
#encoding ⇒ Object
Returns the value of attribute encoding.
126 127 128 |
# File 'lib/Ice/Current.rb', line 126 def encoding @encoding end |
#facet ⇒ Object
Returns the value of attribute facet.
126 127 128 |
# File 'lib/Ice/Current.rb', line 126 def facet @facet end |
#id ⇒ Object
Returns the value of attribute id.
126 127 128 |
# File 'lib/Ice/Current.rb', line 126 def id @id end |
#mode ⇒ Object
Returns the value of attribute mode.
126 127 128 |
# File 'lib/Ice/Current.rb', line 126 def mode @mode end |
#operation ⇒ Object
Returns the value of attribute operation.
126 127 128 |
# File 'lib/Ice/Current.rb', line 126 def operation @operation end |
#requestId ⇒ Object
Returns the value of attribute requestId.
126 127 128 |
# File 'lib/Ice/Current.rb', line 126 def requestId @requestId end |
Instance Method Details
#==(other) ⇒ Object
108 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/Ice/Current.rb', line 108 def ==(other) return false if !other.is_a? ::Ice::Current or @adapter != other.adapter or @con != other.con or @id != other.id or @facet != other.facet or @operation != other.operation or @mode != other.mode or @ctx != other.ctx or @requestId != other.requestId or @encoding != other.encoding true end |
#eql?(other) ⇒ Boolean
122 123 124 |
# File 'lib/Ice/Current.rb', line 122 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/Ice/Current.rb', line 94 def hash _h = 0 _h = 5 * _h + @adapter.hash _h = 5 * _h + @con.hash _h = 5 * _h + @id.hash _h = 5 * _h + @facet.hash _h = 5 * _h + @operation.hash _h = 5 * _h + @mode.hash _h = 5 * _h + @ctx.hash _h = 5 * _h + @requestId.hash _h = 5 * _h + @encoding.hash _h % 0x7fffffff end |