Class: IceGrid::ObjectDescriptor
- Inherits:
-
Object
- Object
- IceGrid::ObjectDescriptor
- Includes:
- Ice::Inspect_mixin
- 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.
Methods included from Ice::Inspect_mixin
Constructor Details
#initialize(id = ::Ice::Identity.new, type = '', proxyOptions = '') ⇒ ObjectDescriptor
Returns a new instance of ObjectDescriptor.
108 109 110 111 112 |
# File 'lib/IceGrid/Descriptor.rb', line 108 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.
134 135 136 |
# File 'lib/IceGrid/Descriptor.rb', line 134 def id @id end |
#proxyOptions ⇒ Object
Returns the value of attribute proxyOptions.
134 135 136 |
# File 'lib/IceGrid/Descriptor.rb', line 134 def proxyOptions @proxyOptions end |
#type ⇒ Object
Returns the value of attribute type.
134 135 136 |
# File 'lib/IceGrid/Descriptor.rb', line 134 def type @type end |
Instance Method Details
#==(other) ⇒ Object
122 123 124 125 126 127 128 |
# File 'lib/IceGrid/Descriptor.rb', line 122 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
130 131 132 |
# File 'lib/IceGrid/Descriptor.rb', line 130 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
114 115 116 117 118 119 120 |
# File 'lib/IceGrid/Descriptor.rb', line 114 def hash _h = 0 _h = 5 * _h + @id.hash _h = 5 * _h + @type.hash _h = 5 * _h + @proxyOptions.hash _h % 0x7fffffff end |