Class: IceGrid::ObjectDescriptor

Inherits:
Object
  • Object
show all
Includes:
Ice::Inspect_mixin
Defined in:
lib/IceGrid/Descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Ice::Inspect_mixin

#inspect

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

#idObject

Returns the value of attribute id.



134
135
136
# File 'lib/IceGrid/Descriptor.rb', line 134

def id
  @id
end

#proxyOptionsObject

Returns the value of attribute proxyOptions.



134
135
136
# File 'lib/IceGrid/Descriptor.rb', line 134

def proxyOptions
  @proxyOptions
end

#typeObject

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

Returns:

  • (Boolean)


130
131
132
# File 'lib/IceGrid/Descriptor.rb', line 130

def eql?(other)
    return other.class == self.class && other == self
end

#hashObject



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