Class: AlmaApi::Configuration
- Inherits:
-
Object
- Object
- AlmaApi::Configuration
- Defined in:
- lib/alma_api/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#default_format ⇒ Object
Returns the value of attribute default_format.
-
#language ⇒ Object
Returns the value of attribute language.
Instance Method Summary collapse
-
#initialize(api_key: nil, base_url: nil, default_format: nil, language: nil) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(api_key: nil, base_url: nil, default_format: nil, language: nil) ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 |
# File 'lib/alma_api/configuration.rb', line 9 def initialize(api_key: nil, base_url: nil, default_format: nil, language: nil) self.api_key = api_key self.base_url = base_url self.default_format = default_format self.language = language end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
4 5 6 |
# File 'lib/alma_api/configuration.rb', line 4 def api_key @api_key end |
#base_url ⇒ Object
Returns the value of attribute base_url.
4 5 6 |
# File 'lib/alma_api/configuration.rb', line 4 def base_url @base_url end |
#default_format ⇒ Object
Returns the value of attribute default_format.
4 5 6 |
# File 'lib/alma_api/configuration.rb', line 4 def default_format @default_format end |
#language ⇒ Object
Returns the value of attribute language.
4 5 6 |
# File 'lib/alma_api/configuration.rb', line 4 def language @language end |