Class: IceGrid::ObjectDescriptor

Inherits:
Object
  • Object
show all
Includes:
Ice::Inspect_mixin
Defined in:
ruby/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.



96
97
98
99
100
# File 'ruby/IceGrid/Descriptor.rb', line 96

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.



122
123
124
# File 'ruby/IceGrid/Descriptor.rb', line 122

def id
  @id
end

#proxyOptionsObject

Returns the value of attribute proxyOptions.



122
123
124
# File 'ruby/IceGrid/Descriptor.rb', line 122

def proxyOptions
  @proxyOptions
end

#typeObject

Returns the value of attribute type.



122
123
124
# File 'ruby/IceGrid/Descriptor.rb', line 122

def type
  @type
end

Instance Method Details

#==(other) ⇒ Object



110
111
112
113
114
115
116
# File 'ruby/IceGrid/Descriptor.rb', line 110

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)


118
119
120
# File 'ruby/IceGrid/Descriptor.rb', line 118

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

#hashObject



102
103
104
105
106
107
108
# File 'ruby/IceGrid/Descriptor.rb', line 102

def hash
    _h = 0
    _h = 5 * _h + @id.hash
    _h = 5 * _h + @type.hash
    _h = 5 * _h + @proxyOptions.hash
    _h % 0x7fffffff
end