Sha256: 9033a5ebf168ee686415856d10c995e959ed6547765161b04636743aa92e7ac3
Contents?: true
Size: 621 Bytes
Versions: 13
Compression:
Stored size: 621 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 = connection.get_records 'network' load(data) end def get( ref ) if ref && obj = connection.get_record( ref, 'network' ) new(obj) end rescue Fog::XenServer::NotFound nil end end end end end
Version data entries
13 entries across 13 versions & 7 rubygems