Class: Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/alma_rest_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



94
95
96
97
# File 'lib/alma_rest_api.rb', line 94

def initialize
  @api_key = ENV['ALMA_API_KEY']
  @api_path = ENV['ALMA_API_PATH'] || "https://api-na.hosted.exlibrisgroup.com/almaws/v1"
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



91
92
93
# File 'lib/alma_rest_api.rb', line 91

def api_key
  @api_key
end

#api_pathObject

Returns the value of attribute api_path.



92
93
94
# File 'lib/alma_rest_api.rb', line 92

def api_path
  @api_path
end