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.



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_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

#departmentObject

Returns the value of attribute department.



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

def department
  @department
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