lib/folio_client.rb in folio_client-0.1.0 vs lib/folio_client.rb in folio_client-0.2.0

- old
+ new

@@ -29,10 +29,11 @@ self end delegate :config, :connection, :get, :post, to: :instance + delegate :fetch_hrid, to: :instance end attr_accessor :config # Send an authenticated get request @@ -61,7 +62,12 @@ def connection @connection ||= Faraday.new( url: config.url, headers: DEFAULT_HEADERS.merge(config.okapi_headers || {}) ) + end + + def fetch_hrid(...) + inventory = Inventory.new(self) + inventory.fetch_hrid(...) end end