Sha256: e666ea11038e1e37fa54ab3848eac99bcc7a09d29127d122ac07bea077853619
Contents?: true
Size: 537 Bytes
Versions: 13
Compression:
Stored size: 537 Bytes
Contents
require 'fog/core/collection' require 'fog/xenserver/models/compute/vif' module Fog module Compute class XenServer class Vifs < Fog::Collection model Fog::Compute::XenServer::VIF def all(options = {}) data = connection.get_records 'VIF' load(data) end def get( ref ) if ref && obj = connection.get_record( ref, 'VIF' ) new(obj) end rescue Fog::XenServer::NotFound nil end end end end end
Version data entries
13 entries across 13 versions & 7 rubygems