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, Update

Instance Method Summary collapse

Instance Method Details

#api_key_optionsObject



8
9
10
# File 'lib/thetvdb_api/base.rb', line 8

def api_key_options
  { apikey: @client.options[:api_key] }
end

#api_key_with_language_optionsObject



16
17
18
# File 'lib/thetvdb_api/base.rb', line 16

def api_key_with_language_options
  api_key_options.merge(language_options)
end

#language_optionsObject



12
13
14
# File 'lib/thetvdb_api/base.rb', line 12

def language_options
  { language: @client.options[:language] }
end