Class: IceGrid::PropertySetDescriptor

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(references = nil, properties = nil) ⇒ PropertySetDescriptor

Returns a new instance of PropertySetDescriptor.



57
58
59
60
# File 'ruby/IceGrid/Descriptor.rb', line 57

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

Instance Attribute Details

#propertiesObject

Returns the value of attribute properties.



80
81
82
# File 'ruby/IceGrid/Descriptor.rb', line 80

def properties
  @properties
end

#referencesObject

Returns the value of attribute references.



80
81
82
# File 'ruby/IceGrid/Descriptor.rb', line 80

def references
  @references
end

Instance Method Details

#==(other) ⇒ Object



69
70
71
72
73
74
# File 'ruby/IceGrid/Descriptor.rb', line 69

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)


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

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

#hashObject



62
63
64
65
66
67
# File 'ruby/IceGrid/Descriptor.rb', line 62

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