Class: FolioApiClient::Configuration
- Inherits:
-
Object
- Object
- FolioApiClient::Configuration
- Defined in:
- lib/folio_api_client/configuration.rb
Overview
Data structure that stores FolioApiClient configuration options.
Constant Summary collapse
- DEFAULT_TIMEOUT =
60- DEFAULT_USER_AGENT =
'FolioApiClient'
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#tenant ⇒ Object
readonly
Returns the value of attribute tenant.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
-
#token ⇒ Object
Returns the value of attribute token.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#user_agent ⇒ Object
readonly
Returns the value of attribute user_agent.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(url:, username:, password:, tenant:, timeout: DEFAULT_TIMEOUT, user_agent: DEFAULT_USER_AGENT) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(url:, username:, password:, tenant:, timeout: DEFAULT_TIMEOUT, user_agent: DEFAULT_USER_AGENT) ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 18 19 |
# File 'lib/folio_api_client/configuration.rb', line 12 def initialize(url:, username:, password:, tenant:, timeout: DEFAULT_TIMEOUT, user_agent: DEFAULT_USER_AGENT) @url = url @username = username @password = password @tenant = tenant @timeout = timeout @user_agent = user_agent end |
Instance Attribute Details
#password ⇒ Object (readonly)
Returns the value of attribute password.
9 10 11 |
# File 'lib/folio_api_client/configuration.rb', line 9 def password @password end |
#tenant ⇒ Object (readonly)
Returns the value of attribute tenant.
9 10 11 |
# File 'lib/folio_api_client/configuration.rb', line 9 def tenant @tenant end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
9 10 11 |
# File 'lib/folio_api_client/configuration.rb', line 9 def timeout @timeout end |
#token ⇒ Object
Returns the value of attribute token.
10 11 12 |
# File 'lib/folio_api_client/configuration.rb', line 10 def token @token end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
9 10 11 |
# File 'lib/folio_api_client/configuration.rb', line 9 def url @url end |
#user_agent ⇒ Object (readonly)
Returns the value of attribute user_agent.
9 10 11 |
# File 'lib/folio_api_client/configuration.rb', line 9 def user_agent @user_agent end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
9 10 11 |
# File 'lib/folio_api_client/configuration.rb', line 9 def username @username end |