Sha256: dac7a29c618012e13b71a9f0febaa310bab7df8f17ec5b8524a718aa63b5443a
Contents?: true
Size: 880 Bytes
Versions: 1
Compression:
Stored size: 880 Bytes
Contents
class TokyoMetro::Factory::Seed::Api::TrainTimetable::Info::StationTime::Info::TrainRelation::MetaClass::Info < TokyoMetro::Factory::Seed::Api::MetaClass::Info include ::TokyoMetro::ClassNameLibrary::Api::TrainTimetable include ::TokyoMetro::ClassNameLibrary::Api::StationTrainTime::Db include ::TokyoMetro::Factory::Seed::Api::TrainTimetable::Info::StationTime::Info::TrainRelation::MetaClass::OptionalInfos private def seed_main _db_instance = db_instance _db_instance.update( hash_for_updating_db ) end def db_instance db_class.find_or_create_by( hash_to_db ) end def method_name_for_db_instance_class :db_instance_class_of_train_relation end def hash_for_updating_db raise "#{self.class.name}\##{__method__} is not defined yet." end def related_train_id ::TrainTimetable.find_by( same_as: @info.same_as ).id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tokyo_metro-0.10.1 | lib/tokyo_metro/factory/seed/api/train_timetable/info/station_time/info/train_relation/meta_class/info.rb |