Sha256: 0bd3beb86b100a79d6bb08e4403b99822607396969d6c2bd76f80afeed552ae2
Contents?: true
Size: 607 Bytes
Versions: 67
Compression:
Stored size: 607 Bytes
Contents
require 'fog/core/collection' require 'fog/xenserver/models/compute/network' module Fog module Compute class XenServer class Networks < Fog::Collection model Fog::Compute::XenServer::Network def initialize(attributes) super end def all(options = {}) data = service.get_records 'network' load(data) end def get( ref ) if ref && obj = service.get_record( ref, 'network' ) new(obj) end rescue Fog::XenServer::NotFound nil end end end end end
Version data entries
67 entries across 67 versions & 7 rubygems