lib/alma/item_request_options.rb in alma-0.4.0 vs lib/alma/item_request_options.rb in alma-0.4.1
- old
+ new
@@ -6,10 +6,10 @@
end
def self.get(mms_id, holding_id = nil, item_pid = nil, options = {})
url = "#{bibs_base_path}/#{mms_id}/holdings/#{holding_id}/items/#{item_pid}/request-options"
options.select! { |k, _| REQUEST_OPTIONS_PERMITTED_ARGS.include? k }
- response = HTTParty.get(url, headers: headers, query: options, timeout: timeout)
+ response = HTTParty.get(url, headers:, query: options, timeout:)
new(response)
end
def validate(response)
if response.code != 200