Class: Configuration
- Inherits:
-
Object
- Object
- Configuration
- Defined in:
- lib/alma_rest_api.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_path ⇒ Object
Returns the value of attribute api_path.
-
#format ⇒ Object
Returns the value of attribute format.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
126 127 128 129 130 |
# File 'lib/alma_rest_api.rb', line 126 def initialize @api_key = ENV['ALMA_APIKEY'] @api_path = ENV['ALMA_APIPATH'] || "https://api-na.hosted.exlibrisgroup.com/almaws/v1" @format = ENV['ALMA_FORMAT'] || :json end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
122 123 124 |
# File 'lib/alma_rest_api.rb', line 122 def api_key @api_key end |
#api_path ⇒ Object
Returns the value of attribute api_path.
123 124 125 |
# File 'lib/alma_rest_api.rb', line 123 def api_path @api_path end |
#format ⇒ Object
Returns the value of attribute format.
124 125 126 |
# File 'lib/alma_rest_api.rb', line 124 def format @format end |