Class: ThetvdbApi::Base

Inherits:
Object
  • Object
show all
Includes:
ServiceApi::BaseFaraday
Defined in:
lib/thetvdb_api/base.rb

Direct Known Subclasses

Actor, Banner, Episode, Search, Series, Server, Update

Instance Method Summary collapse

Instance Method Details

#api_key_optionsObject



6
7
8
# File 'lib/thetvdb_api/base.rb', line 6

def api_key_options
  { apikey: @config[:api_key] }
end

#api_key_with_language_optionsObject



14
15
16
# File 'lib/thetvdb_api/base.rb', line 14

def api_key_with_language_options
  api_key_options.merge(language_options)
end

#language_optionsObject



10
11
12
# File 'lib/thetvdb_api/base.rb', line 10

def language_options
  { language: @config[:language] }
end