Class: ThetvdbApi::Mappers::Banner

Inherits:
Object
  • Object
show all
Includes:
HappyMapper
Defined in:
lib/thetvdb_api/mappers/banner.rb

Instance Method Summary collapse

Instance Method Details

#thumbnail_urlObject



25
26
27
# File 'lib/thetvdb_api/mappers/banner.rb', line 25

def thumbnail_url
  thumbnail_path ? "http://thetvdb.com/banners/#{thumbnail_path}" : nil
end

#urlObject



21
22
23
# File 'lib/thetvdb_api/mappers/banner.rb', line 21

def url
  path ? "http://thetvdb.com/banners/#{path}" : nil
end

#vignette_urlObject



29
30
31
# File 'lib/thetvdb_api/mappers/banner.rb', line 29

def vignette_url
  vignette_path ? "http://thetvdb.com/banners/#{vignette_path}" : nil
end