Class: IceGrid::ObjectDescriptor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



148
149
150
# File 'lib/IceGrid/Descriptor.rb', line 148

def id
  @id
end

#proxyOptionsObject

Returns the value of attribute proxyOptions.



148
149
150
# File 'lib/IceGrid/Descriptor.rb', line 148

def proxyOptions
  @proxyOptions
end

#typeObject

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

Returns:

  • (Boolean)


140
141
142
# File 'lib/IceGrid/Descriptor.rb', line 140

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

#hashObject



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

#inspectObject



144
145
146
# File 'lib/IceGrid/Descriptor.rb', line 144

def inspect
    ::Ice::__stringify(self, T_ObjectDescriptor)
end