Class: RbVmomi::BasicTypes::Enum
- Defined in:
- lib/rbvmomi/basic_types.rb
Class Attribute Summary collapse
-
.values ⇒ Object
Returns the value of attribute values.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value) ⇒ Enum
constructor
A new instance of Enum.
- #to_hash ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(value) ⇒ Enum
Returns a new instance of Enum.
280 281 282 |
# File 'lib/rbvmomi/basic_types.rb', line 280 def initialize value @value = value end |
Class Attribute Details
.values ⇒ Object
Returns the value of attribute values.
268 269 270 |
# File 'lib/rbvmomi/basic_types.rb', line 268 def values @values end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
278 279 280 |
# File 'lib/rbvmomi/basic_types.rb', line 278 def value @value end |
Class Method Details
.init(name = self.name, values = []) ⇒ Object
270 271 272 273 |
# File 'lib/rbvmomi/basic_types.rb', line 270 def init name=self.name, values=[] super name @values = values end |
.kind ⇒ Object
276 |
# File 'lib/rbvmomi/basic_types.rb', line 276 def self.kind; :enum end |
Instance Method Details
#to_hash ⇒ Object
284 285 286 |
# File 'lib/rbvmomi/basic_types.rb', line 284 def to_hash value end |