Module: Mediaman::Trakt

Defined in:
lib/mediaman/trakt.rb

Defined Under Namespace

Classes: Fetcher, Movie, TVEpisode, TVShow

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



7
8
9
# File 'lib/mediaman/trakt.rb', line 7

def api_key
  @api_key
end

Class Method Details

.api_keyObject



12
13
14
# File 'lib/mediaman/trakt.rb', line 12

def self.api_key
  defined?(@@api_key) ? @@api_key : ENV['TRAKT_API_KEY']
end

.api_key=(key) ⇒ Object



8
9
10
# File 'lib/mediaman/trakt.rb', line 8

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