fog/fog-xenserver

View on GitHub
lib/fog/xenserver/compute/requests/get_records.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Fog
  module XenServer
    class Compute
      class Real
        def get_records(klass, options = {})
          @connection.request(:parser => Fog::XenServer::Parsers::GetRecords.new, :method => "#{klass}.get_all_records")
        rescue Fog::XenServer::RequestFailed => e
          []
        end
      end
    end
  end
end