Class: Crawler::Movie::Providers::Tmdb::Configuration
- Inherits:
-
Object
- Object
- Crawler::Movie::Providers::Tmdb::Configuration
- Defined in:
- lib/crawler/movie/providers/tmdb/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#include_adult ⇒ Object
Returns the value of attribute include_adult.
-
#language ⇒ Object
Returns the value of attribute language.
-
#region ⇒ Object
Returns the value of attribute region.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 |
# File 'lib/crawler/movie/providers/tmdb/configuration.rb', line 12 def initialize self.region = 'FR' self.language = 'fr-FR' self.include_adult = false end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
10 11 12 |
# File 'lib/crawler/movie/providers/tmdb/configuration.rb', line 10 def api_key @api_key end |
#include_adult ⇒ Object
Returns the value of attribute include_adult.
10 11 12 |
# File 'lib/crawler/movie/providers/tmdb/configuration.rb', line 10 def include_adult @include_adult end |
#language ⇒ Object
Returns the value of attribute language.
10 11 12 |
# File 'lib/crawler/movie/providers/tmdb/configuration.rb', line 10 def language @language end |
#region ⇒ Object
Returns the value of attribute region.
10 11 12 |
# File 'lib/crawler/movie/providers/tmdb/configuration.rb', line 10 def region @region end |