class TMDb::Configuration

Attributes

api_key[RW]
cache[RW]
null_person[RW]

Public Class Methods

new() click to toggle source
# File lib/tmdb/configuration.rb, line 5
def initialize
  @cache = NullCache.new
  @null_person = NullPerson.new
end

Public Instance Methods

image_backdrop_sizes() click to toggle source

Returns the list of film backdrop image sizes for use in constructing image URLs.

# File lib/tmdb/configuration.rb, line 19
def image_backdrop_sizes
  tmdb_config_images['backdrop_sizes']
end
image_base_url() click to toggle source

Returns the base URL for use in constructing image URLs.

# File lib/tmdb/configuration.rb, line 12
def image_base_url
  tmdb_config_images['base_url']
end
image_poster_sizes() click to toggle source

Returns the list of film poster image sizes for use in constructing image URLs.

# File lib/tmdb/configuration.rb, line 26
def image_poster_sizes
  tmdb_config_images['poster_sizes']
end
image_profile_sizes() click to toggle source

Returns the list of person profile image sizes for use in constructing image URLs.

# File lib/tmdb/configuration.rb, line 33
def image_profile_sizes
  tmdb_config_images['profile_sizes']
end

Protected Instance Methods

tmdb_config_images() click to toggle source
# File lib/tmdb/configuration.rb, line 39
def tmdb_config_images
  @tmdb_config ||= TMDb.get_api_response('configuration')
  @tmdb_config['images']
end