Sha256: cbf978bc454356f69f67b0e06b58abcacc9cfb6282fa4e1c6a719b12c7501590
Contents?: true
Size: 600 Bytes
Versions: 13
Compression:
Stored size: 600 Bytes
Contents
require 'fog/core/collection' require 'fog/xenserver/models/compute/pool' module Fog module Compute class XenServer class Pools < Fog::Collection model Fog::Compute::XenServer::Pool def initialize(attributes) super end def all(options = {}) data = connection.get_records 'pool' load(data) end def get( pool_ref ) if pool_ref && pool = connection.get_record( pool_ref, 'pool' ) new(pool) else nil end end end end end end
Version data entries
13 entries across 13 versions & 7 rubygems