Class: ThetvdbMapper::Actors
- Inherits:
-
Base
- Object
- Base
- ThetvdbMapper::Actors
show all
- Defined in:
- lib/thetvdb_mapper/actors.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/actors.rb', line 2
def data
@data ||= fetcher.actors(id).body.map { |actor| map(actor) }
end
|
#inspect ⇒ Object
10
11
12
|
# File 'lib/thetvdb_mapper/actors.rb', line 10
def inspect
"<ThetvdbMapper::Actors data=#{data.to_s} >"
end
|
#map(data) ⇒ Object
6
7
8
|
# File 'lib/thetvdb_mapper/actors.rb', line 6
def map(data)
ThetvdbMapper::Mapping::Actor.map(data)
end
|