Sha256: 158e6c81b46acdbfdbd001725565f28326b1256cd391b924ff323ba1f9789472
Contents?: true
Size: 501 Bytes
Versions: 3
Compression:
Stored size: 501 Bytes
Contents
module Alma class BibSet 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 @list ||= response.fetch(key, []).map do |record| Alma::Bib.new(record) end end def key 'bib' end def total_record_count size end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alma-0.2.8 | lib/alma/bib_set.rb |
alma-0.2.6 | lib/alma/bib_set.rb |
alma-0.2.5 | lib/alma/bib_set.rb |