Class: ThetvdbMapper::Banners

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

Instance Attribute Summary

Attributes inherited from Base

#id

Instance Method Summary collapse

Methods inherited from Base

#fetcher, #initialize

Constructor Details

This class inherits a constructor from ThetvdbMapper::Base

Instance Method Details

#dataObject



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

def data
  @data ||= fetcher.banners(id).body.map { |banner| map(banner) }
end

#inspectObject



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

def inspect
  "<ThetvdbMapper::Banners data=#{data.to_s} >"
end

#map(data) ⇒ Object



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

def map(data)
  ThetvdbMapper::Mapping::Banner.map(data)
end