Class: IceGrid::PropertySetDescriptor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(references = nil, properties = nil) ⇒ PropertySetDescriptor

Returns a new instance of PropertySetDescriptor.



76
77
78
79
# File 'lib/IceGrid/Descriptor.rb', line 76

def initialize(references=nil, properties=nil)
    @references = references
    @properties = properties
end

Instance Attribute Details

#propertiesObject

Returns the value of attribute properties.



103
104
105
# File 'lib/IceGrid/Descriptor.rb', line 103

def properties
  @properties
end

#referencesObject

Returns the value of attribute references.



103
104
105
# File 'lib/IceGrid/Descriptor.rb', line 103

def references
  @references
end

Instance Method Details

#==(other) ⇒ Object



88
89
90
91
92
93
# File 'lib/IceGrid/Descriptor.rb', line 88

def ==(other)
    return false if !other.is_a? ::IceGrid::PropertySetDescriptor or
        @references != other.references or
        @properties != other.properties
    true
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


95
96
97
# File 'lib/IceGrid/Descriptor.rb', line 95

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

#hashObject



81
82
83
84
85
86
# File 'lib/IceGrid/Descriptor.rb', line 81

def hash
    _h = 0
    _h = 5 * _h + @references.hash
    _h = 5 * _h + @properties.hash
    _h % 0x7fffffff
end

#inspectObject



99
100
101
# File 'lib/IceGrid/Descriptor.rb', line 99

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