Class: ThetvdbMapper::Mapping::Banner

Inherits:
Base
  • Object
show all
Defined in:
lib/thetvdb_mapper/mapping/banner.rb

Instance Attribute Summary

Attributes inherited from Base

#data

Instance Method Summary collapse

Methods inherited from Base

#convert, #convert_to_list, #initialize, #list_mapping_object, #map

Constructor Details

This class inherits a constructor from ThetvdbMapper::Mapping::Base

Instance Method Details

#rulesObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/thetvdb_mapper/mapping/banner.rb', line 2

def rules
  {
    'id' => :id,
    'BannerPath' => :path,
    'ThumbnailPath' => :thumbnail_path,
    'VignettePath' => :vignette_path,
    'BannerType' => :type,
    'BannerType2' => :type2,
    'Language' => :language,
    'Season' => :season,
    'Rating' => :rating,
    'RatingCount' => :rating_count,
    'SeriesName' => :series_name,
    'Colors' => :colors,
  }
end