class VmInfo::State
Constants
- STARTED
- STOPPED
Attributes
name[RW]
value[RW]
Public Class Methods
from_int(value)
click to toggle source
# File lib/archipel/api/vm/vm_info.rb, line 34 def self.from_int value @@index[value] end
Private Class Methods
new(value, name)
click to toggle source
# File lib/archipel/api/vm/vm_info.rb, line 10 def initialize value, name @value, @name = value, name @@index[value] = self end
Public Instance Methods
method_missing(method, *args)
click to toggle source
Calls superclass method
# File lib/archipel/api/vm/vm_info.rb, line 22 def method_missing method, *args if method[-1] == '?' method[0..-2] == name else super end end
to_s()
click to toggle source
# File lib/archipel/api/vm/vm_info.rb, line 30 def to_s "VM state: #{name} (#{value})" end