Class: Ice::Current
- Inherits:
-
Object
- Object
- Ice::Current
- 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.
- #inspect ⇒ Object
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.
90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/Ice/Current.rb', line 90 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.
138 139 140 |
# File 'lib/Ice/Current.rb', line 138 def adapter @adapter end |
#con ⇒ Object
Returns the value of attribute con.
138 139 140 |
# File 'lib/Ice/Current.rb', line 138 def con @con end |
#ctx ⇒ Object
Returns the value of attribute ctx.
138 139 140 |
# File 'lib/Ice/Current.rb', line 138 def ctx @ctx end |
#encoding ⇒ Object
Returns the value of attribute encoding.
138 139 140 |
# File 'lib/Ice/Current.rb', line 138 def encoding @encoding end |
#facet ⇒ Object
Returns the value of attribute facet.
138 139 140 |
# File 'lib/Ice/Current.rb', line 138 def facet @facet end |
#id ⇒ Object
Returns the value of attribute id.
138 139 140 |
# File 'lib/Ice/Current.rb', line 138 def id @id end |
#mode ⇒ Object
Returns the value of attribute mode.
138 139 140 |
# File 'lib/Ice/Current.rb', line 138 def mode @mode end |
#operation ⇒ Object
Returns the value of attribute operation.
138 139 140 |
# File 'lib/Ice/Current.rb', line 138 def operation @operation end |
#requestId ⇒ Object
Returns the value of attribute requestId.
138 139 140 |
# File 'lib/Ice/Current.rb', line 138 def requestId @requestId end |
Instance Method Details
#==(other) ⇒ Object
116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/Ice/Current.rb', line 116 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
130 131 132 |
# File 'lib/Ice/Current.rb', line 130 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/Ice/Current.rb', line 102 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 |