Class: FolioClient::Organizations
- Inherits:
-
Object
- Object
- FolioClient::Organizations
- Defined in:
- lib/folio_client/organizations.rb
Overview
Query organization records in Folio; see s3.amazonaws.com/foliodocs/api/mod-organizations/p/organizations.html s3.amazonaws.com/foliodocs/api/mod-organizations-storage/p/interface.html
Instance Method Summary collapse
- #fetch_interface_details(id:, lang: 'en') ⇒ Object
- #fetch_interface_list(query: nil, limit: 10_000, offset: 0, lang: 'en') ⇒ Object
- #fetch_list(query: nil, limit: 10_000, offset: 0, lang: 'en') ⇒ Object
Instance Method Details
#fetch_interface_details(id:, lang: 'en') ⇒ Object
30 31 32 33 34 |
# File 'lib/folio_client/organizations.rb', line 30 def fetch_interface_details(id:, lang: 'en') client.get("/organizations-storage/interfaces/#{id}", { lang: lang }) end |
#fetch_interface_list(query: nil, limit: 10_000, offset: 0, lang: 'en') ⇒ Object
22 23 24 25 26 |
# File 'lib/folio_client/organizations.rb', line 22 def fetch_interface_list(query: nil, limit: 10_000, offset: 0, lang: 'en') params = { limit: limit, offset: offset, lang: lang } params[:query] = query if query client.get('/organizations-storage/interfaces', params) end |
#fetch_list(query: nil, limit: 10_000, offset: 0, lang: 'en') ⇒ Object
12 13 14 15 16 |
# File 'lib/folio_client/organizations.rb', line 12 def fetch_list(query: nil, limit: 10_000, offset: 0, lang: 'en') params = { limit: limit, offset: offset, lang: lang } params[:query] = query if query client.get('/organizations/organizations', params) end |