Class: ThetvdbMapper::Actors

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from ThetvdbMapper::Base

Instance Method Details

#dataObject



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

def data
  @data ||= fetcher.actors(id).body.map { |actor| map(actor) }
end

#inspectObject



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