Class: IceGrid::ObjectDescriptor
- Inherits:
-
Object
- Object
- IceGrid::ObjectDescriptor
- Defined in:
- lib/IceGrid/Descriptor.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#proxyOptions ⇒ Object
Returns the value of attribute proxyOptions.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(id = ::Ice::Identity.new, type = '', proxyOptions = '') ⇒ ObjectDescriptor
constructor
A new instance of ObjectDescriptor.
- #inspect ⇒ Object
Constructor Details
#initialize(id = ::Ice::Identity.new, type = '', proxyOptions = '') ⇒ ObjectDescriptor
Returns a new instance of ObjectDescriptor.
118 119 120 121 122 |
# File 'lib/IceGrid/Descriptor.rb', line 118 def initialize(id=::Ice::Identity.new, type='', proxyOptions='') @id = id @type = type @proxyOptions = proxyOptions end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
148 149 150 |
# File 'lib/IceGrid/Descriptor.rb', line 148 def id @id end |
#proxyOptions ⇒ Object
Returns the value of attribute proxyOptions.
148 149 150 |
# File 'lib/IceGrid/Descriptor.rb', line 148 def proxyOptions @proxyOptions end |
#type ⇒ Object
Returns the value of attribute type.
148 149 150 |
# File 'lib/IceGrid/Descriptor.rb', line 148 def type @type end |
Instance Method Details
#==(other) ⇒ Object
132 133 134 135 136 137 138 |
# File 'lib/IceGrid/Descriptor.rb', line 132 def ==(other) return false if !other.is_a? ::IceGrid::ObjectDescriptor or @id != other.id or @type != other.type or @proxyOptions != other.proxyOptions true end |
#eql?(other) ⇒ Boolean
140 141 142 |
# File 'lib/IceGrid/Descriptor.rb', line 140 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
124 125 126 127 128 129 130 |
# File 'lib/IceGrid/Descriptor.rb', line 124 def hash _h = 0 _h = 5 * _h + @id.hash _h = 5 * _h + @type.hash _h = 5 * _h + @proxyOptions.hash _h % 0x7fffffff end |
#inspect ⇒ Object
144 145 146 |
# File 'lib/IceGrid/Descriptor.rb', line 144 def inspect ::Ice::__stringify(self, T_ObjectDescriptor) end |