Class: VirtualBox::COM::Model::Machine

Inherits:
NSISupports show all
Defined in:
lib/virtualbox/com/model/4.2.rb,
lib/virtualbox/com/model/4.1-generated.rb,
lib/virtualbox/com/model/4.2-generated.rb

Constant Summary collapse

ONLINE_STATES =
Set.new [ :running, 
  :paused, 
  :stuck,
  :teleporting,
  :live_snapshotting,
  :starting,
  :stopping,
  :saving,
  :restoring,
  :teleporting_paused_vm,
  :teleporting_in,
  :fault_tolerant_syncing,
  :deleting_snapshot_online,
  :deleting_snapshot_paused,
]

Instance Attribute Summary

Attributes inherited from AbstractInterface

#implementer

Instance Method Summary collapse

Methods inherited from AbstractInterface

#cast, function, functions, #initialize, #inspect, member, members, properties, property

Methods inherited from AbstractModel

iid

Constructor Details

This class inherits a constructor from VirtualBox::COM::AbstractInterface

Instance Method Details

#is_online?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/virtualbox/com/model/4.2.rb', line 26

def is_online?
    ONLINE_STATES.include?(state)
end