Class: Tmdb::Api
Constant Summary collapse
- VERSION =
'3'
- BASE_URI =
"http://api.themoviedb.org/#{VERSION}"
- JSON_HEADERS =
{ content_type: 'application/json; charset=utf-8', accept: 'application/json' }
Class Method Summary collapse
Class Method Details
.key(api_key) ⇒ Object
16 17 18 |
# File 'lib/tmdb/api.rb', line 16 def self.key(api_key) self.params[:api_key] = api_key end |
.language(lang) ⇒ Object
20 21 22 |
# File 'lib/tmdb/api.rb', line 20 def self.language(lang) self.params[:language] = lang end |
.params ⇒ Object
12 13 14 |
# File 'lib/tmdb/api.rb', line 12 def self.params @@params ||= {} end |