Class: Syobocal::DB::ChLookup::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.



174
175
176
177
178
179
180
181
182
183
184
185
186
# File 'lib/syobocal/db.rb', line 174

def initialize
  @map = {
    "LastUpdate" => :time,
    "ChID" => :int,
    "ChName" => :str,
    "ChiEPGName" => :str,
    "ChURL" => :str,
    "ChEPGURL" => :str,
    "ChComment" => :str,
    "ChGID" => :int,
    "ChNumber" => :int,
  }
end