Class: TMDb::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

Returns the value of attribute api_key.



3
4
5
# File 'lib/tmdb/configuration.rb', line 3

def api_key
  @api_key
end

#cacheObject

Returns the value of attribute cache.



3
4
5
# File 'lib/tmdb/configuration.rb', line 3

def cache
  @cache
end

#null_personObject

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_sizesObject

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_urlObject

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_sizesObject

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_sizesObject

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