Class: Fog::Compute::XenServer::Consoles
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::XenServer::Consoles
- Defined in:
- lib/fog/xenserver/models/compute/consoles.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
10 11 12 13 |
# File 'lib/fog/xenserver/models/compute/consoles.rb', line 10 def all(={}) data = service.get_records 'console' load(data) end |
#get(console_ref) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/fog/xenserver/models/compute/consoles.rb', line 15 def get( console_ref ) if console_ref && console = service.get_record( console_ref, 'console' ) new(console) else nil end end |