Class: ThetvdbMapper::Banners
- Inherits:
-
Base
- Object
- Base
- ThetvdbMapper::Banners
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
Instance Method Details
#data ⇒ Object
2
3
4
|
# File 'lib/thetvdb_mapper/banners.rb', line 2
def data
@data ||= fetcher.banners(id).body.map { |banner| map(banner) }
end
|
#inspect ⇒ Object
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
|