lib/folio_client.rb in folio_client-0.9.0 vs lib/folio_client.rb in folio_client-0.10.0

- old
+ new

@@ -51,11 +51,12 @@ self end delegate :config, :connection, :get, :post, :put, to: :instance - delegate :fetch_hrid, :fetch_external_id, :fetch_instance_info, :fetch_marc_hash, :has_instance_status?, :data_import, :holdings, :edit_marc_json, to: :instance + delegate :fetch_hrid, :fetch_external_id, :fetch_instance_info, :fetch_marc_hash, :has_instance_status?, :data_import, :edit_marc_json, + :organizations, :organization_interfaces, :interface_details, to: :instance end attr_accessor :config # Send an authenticated get request @@ -122,52 +123,73 @@ headers: DEFAULT_HEADERS.merge(config.okapi_headers || {}) ) end # Public methods available on the FolioClient below + + # @see Inventory#fetch_hrid def fetch_hrid(...) Inventory .new(self) .fetch_hrid(...) end + # @see Inventory#fetch_external_id def fetch_external_id(...) Inventory .new(self) .fetch_external_id(...) end + # @see Inventory#fetch_instance_info def fetch_instance_info(...) Inventory .new(self) .fetch_instance_info(...) end + # @see SourceStorage#fetch_marc_hash def fetch_marc_hash(...) SourceStorage .new(self) .fetch_marc_hash(...) end + # @see Inventory#has_instance_status? def has_instance_status?(...) Inventory .new(self) .has_instance_status?(...) end + # @ see DataImport#import def data_import(...) DataImport .new(self) .import(...) end - def holdings(...) - Holdings - .new(self, ...) - end - + # @see RecordsEditor.edit_marc_json def edit_marc_json(...) RecordsEditor .new(self) .edit_marc_json(...) + end + + def organizations(...) + Organizations + .new(self) + .fetch_list(...) + end + + def organization_interfaces(...) + Organizations + .new(self) + .fetch_interface_list(...) + end + + def interface_details(...) + Organizations + .new(self) + .fetch_interface_details(...) end end