Sha256: faf9f7a2c686e8d09ee8ecee923e40de487ab74ea655b1d51fdc8b4dec0bd985
Contents?: true
Size: 364 Bytes
Versions: 2
Compression:
Stored size: 364 Bytes
Contents
# frozen_string_literal: true module Alma class LibrarySet < ResultSet def_delegators :results, :[], :empty? def each(&block) results.each(&block) end def results @results ||= @response.fetch(key, []) .map { |item| single_record_class.new(item) } end protected def key "library" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alma-0.3.3 | lib/alma/library_set.rb |
alma-0.3.2 | lib/alma/library_set.rb |