Class: TmdbEasy::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/tmdb-easy/base.rb

Direct Known Subclasses

Genre, Search

Constant Summary collapse

@@api_key =
""

Class Method Summary collapse

Class Method Details

.api_keyObject



5
6
7
# File 'lib/tmdb-easy/base.rb', line 5

def self.api_key
  @@api_key
end

.api_key=(api_key) ⇒ Object



9
10
11
# File 'lib/tmdb-easy/base.rb', line 9

def self.api_key=(api_key)
  @@api_key = api_key
end

.base_api_urlObject



13
14
15
# File 'lib/tmdb-easy/base.rb', line 13

def self.base_api_url
  'http://api.themoviedb.org/3/'
end