Class: IceGrid::ServerInstanceDescriptor
- Inherits:
-
Object
- Object
- IceGrid::ServerInstanceDescriptor
- Includes:
- Ice::Inspect_mixin
- 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.
Methods included from Ice::Inspect_mixin
Constructor Details
#initialize(template = '', parameterValues = nil, propertySet = ::IceGrid::PropertySetDescriptor.new, servicePropertySets = nil) ⇒ ServerInstanceDescriptor
Returns a new instance of ServerInstanceDescriptor.
410 411 412 413 414 415 |
# File 'lib/IceGrid/Descriptor.rb', line 410 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.
439 440 441 |
# File 'lib/IceGrid/Descriptor.rb', line 439 def parameterValues @parameterValues end |
#propertySet ⇒ Object
Returns the value of attribute propertySet.
439 440 441 |
# File 'lib/IceGrid/Descriptor.rb', line 439 def propertySet @propertySet end |
#servicePropertySets ⇒ Object
Returns the value of attribute servicePropertySets.
439 440 441 |
# File 'lib/IceGrid/Descriptor.rb', line 439 def servicePropertySets @servicePropertySets end |
#template ⇒ Object
Returns the value of attribute template.
439 440 441 |
# File 'lib/IceGrid/Descriptor.rb', line 439 def template @template end |
Instance Method Details
#==(other) ⇒ Object
426 427 428 429 430 431 432 433 |
# File 'lib/IceGrid/Descriptor.rb', line 426 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
435 436 437 |
# File 'lib/IceGrid/Descriptor.rb', line 435 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
417 418 419 420 421 422 423 424 |
# File 'lib/IceGrid/Descriptor.rb', line 417 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 |