Module: ThetvdbApi::Mappers::BaseMapper
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/thetvdb_api/mappers/base_mapper.rb', line 4 def self.included(base) base.send :element, :id, Integer base.send :element, :first_aired, Date, tag: 'FirstAired' base.send :element, :imdb_id, String, tag: 'IMDB_ID' base.send :element, :language, String, tag: 'Language' base.send :element, :overview, String, tag: 'Overview' base.send :element, :rating, Float, tag: 'Rating' base.send :element, :rating_count, Integer, tag: 'RatingCount' end |