Class: FolioClient::Config
- Inherits:
-
Struct
- Object
- Struct
- FolioClient::Config
- Defined in:
- lib/folio_client.rb
Instance Attribute Summary collapse
-
#login_params ⇒ Object
Returns the value of attribute login_params.
-
#tenant_id ⇒ Object
Returns the value of attribute tenant_id.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#url ⇒ Object
Returns the value of attribute url.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#headers ⇒ Hash<Symbol,String>
Build default headers for Folio-bound requests.
Instance Attribute Details
#login_params ⇒ Object
Returns the value of attribute login_params
52 53 54 |
# File 'lib/folio_client.rb', line 52 def login_params @login_params end |
#tenant_id ⇒ Object
Returns the value of attribute tenant_id
52 53 54 |
# File 'lib/folio_client.rb', line 52 def tenant_id @tenant_id end |
#timeout ⇒ Object
Returns the value of attribute timeout
52 53 54 |
# File 'lib/folio_client.rb', line 52 def timeout @timeout end |
#url ⇒ Object
Returns the value of attribute url
52 53 54 |
# File 'lib/folio_client.rb', line 52 def url @url end |
#user_agent ⇒ Object
Returns the value of attribute user_agent
52 53 54 |
# File 'lib/folio_client.rb', line 52 def user_agent @user_agent end |
Instance Method Details
#headers ⇒ Hash<Symbol,String>
Build default headers for Folio-bound requests.
55 56 57 58 59 60 61 62 |
# File 'lib/folio_client.rb', line 55 def headers { accept: 'application/json, text/plain', content_type: 'application/json', user_agent: user_agent, 'X-Okapi-Tenant': tenant_id } end |