Class: JarvisbotSongfinder::Configuration
- Inherits:
-
Object
- Object
- JarvisbotSongfinder::Configuration
- Defined in:
- lib/jarvisbot_songfinder/configuration.rb
Overview
Holds the app configuration
Configuration.region # => nil
Instance Attribute Summary collapse
-
#length_max ⇒ Object
Returns the value of attribute length_max.
-
#length_min ⇒ Object
Returns the value of attribute length_min.
-
#region ⇒ Object
Returns the value of attribute region.
-
#spotify_client_id ⇒ Object
Returns the value of attribute spotify_client_id.
-
#spotify_secret ⇒ Object
Returns the value of attribute spotify_secret.
-
#youtube_api_key ⇒ Object
Returns the value of attribute youtube_api_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_max ⇒ Object
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_min ⇒ Object
Returns the value of attribute length_min.
17 18 19 |
# File 'lib/jarvisbot_songfinder/configuration.rb', line 17 def length_min @length_min end |
#region ⇒ Object
Returns the value of attribute region.
17 18 19 |
# File 'lib/jarvisbot_songfinder/configuration.rb', line 17 def region @region end |
#spotify_client_id ⇒ Object
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_secret ⇒ Object
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_key ⇒ Object
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 |