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.



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_keyObject

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_pathObject

Returns the value of attribute api_path.



123
124
125
# File 'lib/alma_rest_api.rb', line 123

def api_path
  @api_path
end

#formatObject

Returns the value of attribute format.



124
125
126
# File 'lib/alma_rest_api.rb', line 124

def format
  @format
end