Class: JarvisbotSongfinder::Configuration

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

Overview

Holds the app configuration

Configuration.region # => nil

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



24
25
26
27
28
29
30
31
# File 'lib/jarvisbot_songfinder/configuration.rb', line 24

def initialize
  @spotify_client_id = nil
  @spotify_secret = nil
  @youtube_api_key = nil
  @region = nil
  @length_min = 0
  @length_max = Float::INFINITY
end

Instance Attribute Details

#length_maxObject

Returns the value of attribute length_max.



17
18
19
# File 'lib/jarvisbot_songfinder/configuration.rb', line 17

def length_max
  @length_max
end

#length_minObject

Returns the value of attribute length_min.



17
18
19
# File 'lib/jarvisbot_songfinder/configuration.rb', line 17

def length_min
  @length_min
end

#regionObject

Returns the value of attribute region.



17
18
19
# File 'lib/jarvisbot_songfinder/configuration.rb', line 17

def region
  @region
end

#spotify_client_idObject

Returns the value of attribute spotify_client_id.



17
18
19
# File 'lib/jarvisbot_songfinder/configuration.rb', line 17

def spotify_client_id
  @spotify_client_id
end

#spotify_secretObject

Returns the value of attribute spotify_secret.



17
18
19
# File 'lib/jarvisbot_songfinder/configuration.rb', line 17

def spotify_secret
  @spotify_secret
end

#youtube_api_keyObject

Returns the value of attribute youtube_api_key.



17
18
19
# File 'lib/jarvisbot_songfinder/configuration.rb', line 17

def youtube_api_key
  @youtube_api_key
end