class Fog::Compute::XenServer::Pools
Public Class Methods
new(attributes)
click to toggle source
Calls superclass method
# File lib/fog/xenserver/models/compute/pools.rb, line 10 def initialize(attributes) super end
Public Instance Methods
all(options = {})
click to toggle source
# File lib/fog/xenserver/models/compute/pools.rb, line 14 def all(options = {}) data = service.get_records 'pool' load(data) end
get( pool_ref )
click to toggle source
# File lib/fog/xenserver/models/compute/pools.rb, line 19 def get( pool_ref ) if pool_ref && pool = service.get_record( pool_ref, 'pool' ) new(pool) else nil end end