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.
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#department ⇒ Object
Returns the value of attribute department.
-
#order_prefix ⇒ Object
Returns the value of attribute order_prefix.
-
#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.
11 12 13 14 15 16 17 18 19 |
# File 'lib/support/configuration.rb', line 11 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 @channel = ENV['MUSIC_TODAY_CHANNEL'] || '' @order_prefix = ENV['MUSIC_TODAY_ORDER_PREFIX'] || 'EXA' 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 |
#channel ⇒ Object
Returns the value of attribute channel.
3 4 5 |
# File 'lib/support/configuration.rb', line 3 def channel @channel end |
#department ⇒ Object
Returns the value of attribute department.
3 4 5 |
# File 'lib/support/configuration.rb', line 3 def department @department end |
#order_prefix ⇒ Object
Returns the value of attribute order_prefix.
3 4 5 |
# File 'lib/support/configuration.rb', line 3 def order_prefix @order_prefix 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 |