Class: ThetvdbMapper::Episode

Inherits:
Base
  • Object
show all
Defined in:
lib/thetvdb_mapper/episode.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/episode.rb', line 2

def data
  @data ||= ThetvdbMapper::Mapping::Episode.map(fetcher.episode(id).body)
end

#inspectObject



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

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