Class: IceGrid::ServerInstanceDescriptor
- Inherits:
-
Object
- Object
- IceGrid::ServerInstanceDescriptor
- Defined in:
- lib/IceGrid/Descriptor.rb
Instance Attribute Summary collapse
-
#parameterValues ⇒ Object
Returns the value of attribute parameterValues.
-
#propertySet ⇒ Object
Returns the value of attribute propertySet.
-
#servicePropertySets ⇒ Object
Returns the value of attribute servicePropertySets.
-
#template ⇒ Object
Returns the value of attribute template.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(template = '', parameterValues = nil, propertySet = ::IceGrid::PropertySetDescriptor.new, servicePropertySets = nil) ⇒ ServerInstanceDescriptor
constructor
A new instance of ServerInstanceDescriptor.
- #inspect ⇒ Object
Constructor Details
#initialize(template = '', parameterValues = nil, propertySet = ::IceGrid::PropertySetDescriptor.new, servicePropertySets = nil) ⇒ ServerInstanceDescriptor
Returns a new instance of ServerInstanceDescriptor.
548 549 550 551 552 553 |
# File 'lib/IceGrid/Descriptor.rb', line 548 def initialize(template='', parameterValues=nil, propertySet=::IceGrid::PropertySetDescriptor.new, servicePropertySets=nil) @template = template @parameterValues = parameterValues @propertySet = propertySet @servicePropertySets = servicePropertySets end |
Instance Attribute Details
#parameterValues ⇒ Object
Returns the value of attribute parameterValues.
581 582 583 |
# File 'lib/IceGrid/Descriptor.rb', line 581 def parameterValues @parameterValues end |
#propertySet ⇒ Object
Returns the value of attribute propertySet.
581 582 583 |
# File 'lib/IceGrid/Descriptor.rb', line 581 def propertySet @propertySet end |
#servicePropertySets ⇒ Object
Returns the value of attribute servicePropertySets.
581 582 583 |
# File 'lib/IceGrid/Descriptor.rb', line 581 def servicePropertySets @servicePropertySets end |
#template ⇒ Object
Returns the value of attribute template.
581 582 583 |
# File 'lib/IceGrid/Descriptor.rb', line 581 def template @template end |
Instance Method Details
#==(other) ⇒ Object
564 565 566 567 568 569 570 571 |
# File 'lib/IceGrid/Descriptor.rb', line 564 def ==(other) return false if !other.is_a? ::IceGrid::ServerInstanceDescriptor or @template != other.template or @parameterValues != other.parameterValues or @propertySet != other.propertySet or @servicePropertySets != other.servicePropertySets true end |
#eql?(other) ⇒ Boolean
573 574 575 |
# File 'lib/IceGrid/Descriptor.rb', line 573 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
555 556 557 558 559 560 561 562 |
# File 'lib/IceGrid/Descriptor.rb', line 555 def hash _h = 0 _h = 5 * _h + @template.hash _h = 5 * _h + @parameterValues.hash _h = 5 * _h + @propertySet.hash _h = 5 * _h + @servicePropertySets.hash _h % 0x7fffffff end |
#inspect ⇒ Object
577 578 579 |
# File 'lib/IceGrid/Descriptor.rb', line 577 def inspect ::Ice::__stringify(self, T_ServerInstanceDescriptor) end |