class Alma::BibHolding
Attributes
holding[R]
Public Class Methods
find(mms_id:, holding_id:)
click to toggle source
# File lib/alma/bib_holding.rb, line 8 def self.find(mms_id:, holding_id:) url = "#{bibs_base_path}/#{mms_id}/holdings/#{holding_id}" response = HTTParty.get(url, headers: headers, timeout: timeout) new(response) end
new(holding)
click to toggle source
# File lib/alma/bib_holding.rb, line 17 def initialize(holding) @holding = holding end
Public Instance Methods
holding_id()
click to toggle source
# File lib/alma/bib_holding.rb, line 21 def holding_id holding["holding_id"] end