Sha256: 9ba9b8aa167402402ddfbe0b026d5c85a155af613f0ee9af9146bba2d0abb2d1

Contents?: true

Size: 463 Bytes

Versions: 6

Compression:

Stored size: 463 Bytes

Contents

module Voyager
  module Request
    def self.simple_holdings_check(args = {})
      
      con = args.delete(:connection)
      con ||= OracleConnection.new(args.delete(:connection_details))
      bibids = Array.wrap(args.delete(:bibids))
      con.retrieve_holdings(bibids)
      
      results = {}

      bibids.each do |bibid|
        results[bibid] = Collection.new(bibid: bibid, connection: con).to_hash()
      end

      return results

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voyager_oracle_api-1.1.1 lib/request.rb
voyager_oracle_api-1.1.0 lib/request.rb
voyager_oracle_api-1.0.0 lib/request.rb
voyager_oracle_api-0.3.5 lib/request.rb
voyager_oracle_api-0.3.4 lib/request.rb
voyager_oracle_api-0.3.2 lib/request.rb