Class: IceGrid::ServiceInstanceDescriptor
- Inherits:
-
Object
- Object
- IceGrid::ServiceInstanceDescriptor
- Includes:
- Ice::Inspect_mixin
- Defined in:
- lib/IceGrid/Descriptor.rb
Instance Attribute Summary collapse
-
#descriptor ⇒ Object
Returns the value of attribute descriptor.
-
#parameterValues ⇒ Object
Returns the value of attribute parameterValues.
-
#propertySet ⇒ Object
Returns the value of attribute propertySet.
-
#template ⇒ Object
Returns the value of attribute template.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(template = '', parameterValues = nil, descriptor = nil, propertySet = ::IceGrid::PropertySetDescriptor.new) ⇒ ServiceInstanceDescriptor
constructor
A new instance of ServiceInstanceDescriptor.
Methods included from Ice::Inspect_mixin
Constructor Details
#initialize(template = '', parameterValues = nil, descriptor = nil, propertySet = ::IceGrid::PropertySetDescriptor.new) ⇒ ServiceInstanceDescriptor
Returns a new instance of ServiceInstanceDescriptor.
500 501 502 503 504 505 |
# File 'lib/IceGrid/Descriptor.rb', line 500 def initialize(template='', parameterValues=nil, descriptor=nil, propertySet=::IceGrid::PropertySetDescriptor.new) @template = template @parameterValues = parameterValues @descriptor = descriptor @propertySet = propertySet end |
Instance Attribute Details
#descriptor ⇒ Object
Returns the value of attribute descriptor.
529 530 531 |
# File 'lib/IceGrid/Descriptor.rb', line 529 def descriptor @descriptor end |
#parameterValues ⇒ Object
Returns the value of attribute parameterValues.
529 530 531 |
# File 'lib/IceGrid/Descriptor.rb', line 529 def parameterValues @parameterValues end |
#propertySet ⇒ Object
Returns the value of attribute propertySet.
529 530 531 |
# File 'lib/IceGrid/Descriptor.rb', line 529 def propertySet @propertySet end |
#template ⇒ Object
Returns the value of attribute template.
529 530 531 |
# File 'lib/IceGrid/Descriptor.rb', line 529 def template @template end |
Instance Method Details
#==(other) ⇒ Object
516 517 518 519 520 521 522 523 |
# File 'lib/IceGrid/Descriptor.rb', line 516 def ==(other) return false if !other.is_a? ::IceGrid::ServiceInstanceDescriptor or @template != other.template or @parameterValues != other.parameterValues or @descriptor != other.descriptor or @propertySet != other.propertySet true end |
#eql?(other) ⇒ Boolean
525 526 527 |
# File 'lib/IceGrid/Descriptor.rb', line 525 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
507 508 509 510 511 512 513 514 |
# File 'lib/IceGrid/Descriptor.rb', line 507 def hash _h = 0 _h = 5 * _h + @template.hash _h = 5 * _h + @parameterValues.hash _h = 5 * _h + @descriptor.hash _h = 5 * _h + @propertySet.hash _h % 0x7fffffff end |