Class: ThetvdbMapper::Fetcher

Inherits:
Object
  • Object
show all
Defined in:
lib/thetvdb_mapper/fetcher.rb

Instance Method Summary collapse

Instance Method Details

#actors(id) ⇒ Object



10
11
12
# File 'lib/thetvdb_mapper/fetcher.rb', line 10

def actors(id)
  @actors ||= client.actor.find(id, mapping: true)
end

#banners(id) ⇒ Object



14
15
16
# File 'lib/thetvdb_mapper/fetcher.rb', line 14

def banners(id)
  @banners ||= client.banner.find(id, mapping: true)
end

#clientObject



22
23
24
# File 'lib/thetvdb_mapper/fetcher.rb', line 22

def client
  ThetvdbApi::Client.new
end

#episode(id) ⇒ Object



18
19
20
# File 'lib/thetvdb_mapper/fetcher.rb', line 18

def episode(id)
  @episode ||= client.episode.find(id, mapping: true)
end

#full_series(id) ⇒ Object



6
7
8
# File 'lib/thetvdb_mapper/fetcher.rb', line 6

def full_series(id)
  @full_series ||= client.series.find_full(id, mapping: true)
end

#series(id) ⇒ Object



2
3
4
# File 'lib/thetvdb_mapper/fetcher.rb', line 2

def series(id)
  @series ||= client.series.find(id, mapping: true)
end