Class: RbVmomi::BasicTypes::Enum

Inherits:
Base
  • Object
show all
Defined in:
lib/rbvmomi/basic_types.rb

Class Attribute Summary collapse

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

to_s

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

.valuesObject

Returns the value of attribute values.



265
266
267
# File 'lib/rbvmomi/basic_types.rb', line 265

def values
  @values
end

Instance Attribute Details

#valueObject (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

.kindObject



273
# File 'lib/rbvmomi/basic_types.rb', line 273

def self.kind; :enum end

Instance Method Details

#to_hashObject



281
282
283
# File 'lib/rbvmomi/basic_types.rb', line 281

def to_hash
  value
end