Sha256: 3d9c1544d38c9e190f318f117a69858bc6513704f6d55db99a7cf3460ee1ba43
Contents?: true
Size: 503 Bytes
Versions: 2
Compression:
Stored size: 503 Bytes
Contents
module Alma class LoanSet extend Forwardable include Enumerable #include Alma::Error attr_reader :response def_delegators :list, :each, :size def_delegators :response, :[], :fetch def initialize(response_body_hash) @response = response_body_hash end def list fetch(key, []) end def key 'item_loan' end def total_record_count fetch('total_record_count', 0) end alias :total_records :total_record_count end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alma-0.2.6 | lib/alma/loan_set.rb |
alma-0.2.5 | lib/alma/loan_set.rb |