Class: Syobocal::DB::TitleLookup::Mapper

Inherits:
Object
  • Object
show all
Includes:
Mapper
Defined in:
lib/syobocal/db.rb

Instance Method Summary collapse

Methods included from Mapper

#map, #set, #to_snake

Constructor Details

#initializeMapper

Returns a new instance of Mapper.



67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/syobocal/db.rb', line 67

def initialize
  @map = {
    "TID" => :int,
    "LastUpdate" => :time,
    "Title" => :str,
    "ShortTitle" => :str,
    "TitleYomi" => :str,
    "TitleEN" => :str,
    "Comment" => :str,
    "Cat" => :int,
    "TitleFlag" => :int,
    "FirstYear" => :int,
    "FirstMonth" => :int,
    "FirstEndYear" => :int,
    "FirstEndMonth" => :int,
    "FirstCh" => :str,
    "Keywords" => :str,
    "UserPoint" => :int,
    "UserPointRank" => :int,
    "SubTitles" => :str,
  }
end