Class: IceGrid::ReplicaGroupDescriptor
- Inherits:
-
Object
- Object
- IceGrid::ReplicaGroupDescriptor
- Defined in:
- lib/IceGrid/Descriptor.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#id ⇒ Object
Returns the value of attribute id.
-
#loadBalancing ⇒ Object
Returns the value of attribute loadBalancing.
-
#objects ⇒ Object
Returns the value of attribute objects.
-
#proxyOptions ⇒ Object
Returns the value of attribute proxyOptions.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(id = '', loadBalancing = nil, proxyOptions = '', objects = nil, description = '', filter = '') ⇒ ReplicaGroupDescriptor
constructor
A new instance of ReplicaGroupDescriptor.
- #inspect ⇒ Object
Constructor Details
#initialize(id = '', loadBalancing = nil, proxyOptions = '', objects = nil, description = '', filter = '') ⇒ ReplicaGroupDescriptor
Returns a new instance of ReplicaGroupDescriptor.
1101 1102 1103 1104 1105 1106 1107 1108 |
# File 'lib/IceGrid/Descriptor.rb', line 1101 def initialize(id='', loadBalancing=nil, proxyOptions='', objects=nil, description='', filter='') @id = id @loadBalancing = loadBalancing @proxyOptions = proxyOptions @objects = objects @description = description @filter = filter end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
1140 1141 1142 |
# File 'lib/IceGrid/Descriptor.rb', line 1140 def description @description end |
#filter ⇒ Object
Returns the value of attribute filter.
1140 1141 1142 |
# File 'lib/IceGrid/Descriptor.rb', line 1140 def filter @filter end |
#id ⇒ Object
Returns the value of attribute id.
1140 1141 1142 |
# File 'lib/IceGrid/Descriptor.rb', line 1140 def id @id end |
#loadBalancing ⇒ Object
Returns the value of attribute loadBalancing.
1140 1141 1142 |
# File 'lib/IceGrid/Descriptor.rb', line 1140 def loadBalancing @loadBalancing end |
#objects ⇒ Object
Returns the value of attribute objects.
1140 1141 1142 |
# File 'lib/IceGrid/Descriptor.rb', line 1140 def objects @objects end |
#proxyOptions ⇒ Object
Returns the value of attribute proxyOptions.
1140 1141 1142 |
# File 'lib/IceGrid/Descriptor.rb', line 1140 def proxyOptions @proxyOptions end |
Instance Method Details
#==(other) ⇒ Object
1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 |
# File 'lib/IceGrid/Descriptor.rb', line 1121 def ==(other) return false if !other.is_a? ::IceGrid::ReplicaGroupDescriptor or @id != other.id or @loadBalancing != other.loadBalancing or @proxyOptions != other.proxyOptions or @objects != other.objects or @description != other.description or @filter != other.filter true end |
#eql?(other) ⇒ Boolean
1132 1133 1134 |
# File 'lib/IceGrid/Descriptor.rb', line 1132 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 |
# File 'lib/IceGrid/Descriptor.rb', line 1110 def hash _h = 0 _h = 5 * _h + @id.hash _h = 5 * _h + @loadBalancing.hash _h = 5 * _h + @proxyOptions.hash _h = 5 * _h + @objects.hash _h = 5 * _h + @description.hash _h = 5 * _h + @filter.hash _h % 0x7fffffff end |
#inspect ⇒ Object
1136 1137 1138 |
# File 'lib/IceGrid/Descriptor.rb', line 1136 def inspect ::Ice::__stringify(self, T_ReplicaGroupDescriptor) end |