Class: MusicTodayApiWrapper::Configuration
- Inherits:
-
Object
- Object
- MusicTodayApiWrapper::Configuration
- Defined in:
- lib/support/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#catalog ⇒ Object
Returns the value of attribute catalog.
-
#department ⇒ Object
Returns the value of attribute department.
-
#url ⇒ Object
Returns the value of attribute url.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 |
# File 'lib/support/configuration.rb', line 5 def initialize @user = ENV['MUSIC_TODAY_USER'] @api_key = ENV['MUSIC_TODAY_API_KEY'] @url = ENV['MUSIC_TODAY_BASE_URL'] @catalog = ENV['MUSIC_TODAY_CATALOG_NAME'] @department = ENV['MUSIC_TODAY_DEPARTMENT_NAME'] || nil end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/support/configuration.rb', line 3 def api_key @api_key end |
#catalog ⇒ Object
Returns the value of attribute catalog.
3 4 5 |
# File 'lib/support/configuration.rb', line 3 def catalog @catalog end |
#department ⇒ Object
Returns the value of attribute department.
3 4 5 |
# File 'lib/support/configuration.rb', line 3 def department @department end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/support/configuration.rb', line 3 def url @url end |
#user ⇒ Object
Returns the value of attribute user.
3 4 5 |
# File 'lib/support/configuration.rb', line 3 def user @user end |