Class: TMDb::Configuration
- Inherits:
-
Object
- Object
- TMDb::Configuration
- Defined in:
- lib/tmdb/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#null_person ⇒ Object
Returns the value of attribute null_person.
Instance Method Summary collapse
-
#image_backdrop_sizes ⇒ Object
Returns the list of film backdrop image sizes for use in constructing image URLs.
-
#image_base_url ⇒ Object
Returns the base URL for use in constructing image URLs.
-
#image_poster_sizes ⇒ Object
Returns the list of film poster image sizes for use in constructing image URLs.
-
#image_profile_sizes ⇒ Object
Returns the list of person profile image sizes for use in constructing image URLs.
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 |
# File 'lib/tmdb/configuration.rb', line 5 def initialize @cache = NullCache.new @null_person = NullPerson.new end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/tmdb/configuration.rb', line 3 def api_key @api_key end |
#cache ⇒ Object
Returns the value of attribute cache.
3 4 5 |
# File 'lib/tmdb/configuration.rb', line 3 def cache @cache end |
#null_person ⇒ Object
Returns the value of attribute null_person.
3 4 5 |
# File 'lib/tmdb/configuration.rb', line 3 def null_person @null_person end |
Instance Method Details
#image_backdrop_sizes ⇒ Object
Returns the list of film backdrop image sizes for use in constructing image URLs.
19 20 21 |
# File 'lib/tmdb/configuration.rb', line 19 def image_backdrop_sizes tmdb_config_images['backdrop_sizes'] end |
#image_base_url ⇒ Object
Returns the base URL for use in constructing image URLs.
12 13 14 |
# File 'lib/tmdb/configuration.rb', line 12 def image_base_url tmdb_config_images['base_url'] end |
#image_poster_sizes ⇒ Object
Returns the list of film poster image sizes for use in constructing image URLs.
26 27 28 |
# File 'lib/tmdb/configuration.rb', line 26 def image_poster_sizes tmdb_config_images['poster_sizes'] end |
#image_profile_sizes ⇒ Object
Returns the list of person profile image sizes for use in constructing image URLs.
33 34 35 |
# File 'lib/tmdb/configuration.rb', line 33 def image_profile_sizes tmdb_config_images['profile_sizes'] end |