Class: MusicTodayApiWrapper::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

Returns the value of attribute api_key.



3
4
5
# File 'lib/support/configuration.rb', line 3

def api_key
  @api_key
end

#catalogObject

Returns the value of attribute catalog.



3
4
5
# File 'lib/support/configuration.rb', line 3

def catalog
  @catalog
end

#channelObject

Returns the value of attribute channel.



3
4
5
# File 'lib/support/configuration.rb', line 3

def channel
  @channel
end

#departmentObject

Returns the value of attribute department.



3
4
5
# File 'lib/support/configuration.rb', line 3

def department
  @department
end

#order_prefixObject

Returns the value of attribute order_prefix.



3
4
5
# File 'lib/support/configuration.rb', line 3

def order_prefix
  @order_prefix
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/support/configuration.rb', line 3

def url
  @url
end

#userObject

Returns the value of attribute user.



3
4
5
# File 'lib/support/configuration.rb', line 3

def user
  @user
end