lib/alma/location.rb in alma-0.4.0 vs lib/alma/location.rb in alma-0.4.1
- old
+ new
@@ -3,19 +3,19 @@
module Alma
class Location < AlmaRecord
extend Alma::ApiDefaults
def self.all(library_code:, args: {})
- response = HTTParty.get("#{configuration_base_path}/libraries/#{library_code}/locations", query: args, headers: headers, timeout: timeout)
+ response = HTTParty.get("#{configuration_base_path}/libraries/#{library_code}/locations", query: args, headers:, timeout:)
if response.code == 200
LocationSet.new(response)
else
raise StandardError, get_body_from(response)
end
end
def self.find(library_code:, location_code:, args: {})
- response = HTTParty.get("#{configuration_base_path}/libraries/#{library_code}/locations/#{location_code}", query: args, headers: headers, timeout: timeout)
+ response = HTTParty.get("#{configuration_base_path}/libraries/#{library_code}/locations/#{location_code}", query: args, headers:, timeout:)
if response.code == 200
AlmaRecord.new(response)
else
raise StandardError, get_body_from(response)
end