Sha256: b341a4f1912d2e6929e8b882bf825a02392177450ac27d63127515af83185c26

Contents?: true

Size: 601 Bytes

Versions: 13

Compression:

Stored size: 601 Bytes

Contents

require 'fog/core/collection'
require 'fog/xenserver/models/compute/pif'

module Fog
  module Compute
    class XenServer

      class Pifs < Fog::Collection

        model Fog::Compute::XenServer::PIF
        
        def initialize(attributes)
          super
        end

        def all(options = {})
          data = connection.get_records 'PIF'
          load(data)
        end

        def get( ref )
          if ref && obj = connection.get_record( ref, 'PIF' )
            new(obj)
          end
        rescue Fog::XenServer::NotFound
          nil
        end

      end

    end
  end
end

Version data entries

13 entries across 13 versions & 7 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/xenserver/models/compute/pifs.rb
fog-nirvanix-1.8.1 lib/fog/xenserver/models/compute/pifs.rb
fog-parser-fix-1.6.1 lib/fog/xenserver/models/compute/pifs.rb
fog-test-again-1.6.0 lib/fog/xenserver/models/compute/pifs.rb
fog-parser-fix-1.6.0 lib/fog/xenserver/models/compute/pifs.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/xenserver/models/compute/pifs.rb
fog-sgonyea-1.8.1 lib/fog/xenserver/models/compute/pifs.rb
fog-1.8.0 lib/fog/xenserver/models/compute/pifs.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/xenserver/models/compute/pifs.rb
fog-1.7.0 lib/fog/xenserver/models/compute/pifs.rb
fog-1.6.0 lib/fog/xenserver/models/compute/pifs.rb
fog-1.5.0 lib/fog/xenserver/models/compute/pifs.rb
fog-1.4.0 lib/fog/xenserver/models/compute/pifs.rb