Class: IceGrid::PropertySetDescriptor

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

Returns a new instance of PropertySetDescriptor.



69
70
71
72
# File 'lib/IceGrid/Descriptor.rb', line 69

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

Instance Attribute Details

#propertiesObject

Returns the value of attribute properties.



92
93
94
# File 'lib/IceGrid/Descriptor.rb', line 92

def properties
  @properties
end

#referencesObject

Returns the value of attribute references.



92
93
94
# File 'lib/IceGrid/Descriptor.rb', line 92

def references
  @references
end

Instance Method Details

#==(other) ⇒ Object



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

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)


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

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

#hashObject



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

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