class Alma::LocationSet

Public Instance Methods

each(&block) click to toggle source
# File lib/alma/location_set.rb, line 7
def each(&block)
  results.each(&block)
end
results() click to toggle source
# File lib/alma/location_set.rb, line 11
def results
  @results ||= @response.fetch(key, [])
    .map { |item| single_record_class.new(item) }
end

Protected Instance Methods

key() click to toggle source
# File lib/alma/location_set.rb, line 17
def key
  "location"
end