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.
277 278 279 |
# File 'lib/rbvmomi/basic_types.rb', line 277 def initialize value @value = value end |
Class Attribute Details
.values ⇒ Object
Returns the value of attribute values.
265 266 267 |
# File 'lib/rbvmomi/basic_types.rb', line 265 def values @values end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
275 276 277 |
# File 'lib/rbvmomi/basic_types.rb', line 275 def value @value end |
Class Method Details
.init(name = self.name, values = []) ⇒ Object
267 268 269 270 |
# File 'lib/rbvmomi/basic_types.rb', line 267 def init name=self.name, values=[] super name @values = values end |
.kind ⇒ Object
273 |
# File 'lib/rbvmomi/basic_types.rb', line 273 def self.kind; :enum end |
Instance Method Details
#to_hash ⇒ Object
281 282 283 |
# File 'lib/rbvmomi/basic_types.rb', line 281 def to_hash value end |