Sha256: 5429853bf6600e471dcb1f2c167eb8748590fc87f63e16b3d881af2472ff121a
Contents?: true
Size: 930 Bytes
Versions: 1
Compression:
Stored size: 930 Bytes
Contents
class TokyoMetro::Factory::Convert::Common::Api::MetaClass::TrainInfos::RomanceCar::Info < TokyoMetro::Factory::Convert::Common::Api::MetaClass::Fundamental::Normal def process if romance_car_on_chiyoda_line? puts "TokyoMetro::Factory::Convert::Common::Api::MetaClass::TrainInfos::RomanceCar::Info\#process" set_train_type set_specific_train_name end end private def romance_car_on_chiyoda_line? @object.romance_car_on_chiyoda_line? end def set_train_type @object.instance_variable_set( :@train_type , "odpt.TrainType:TokyoMetro.RomanceCar" ) end def set_specific_train_name _specific_train_name = specific_train_name if _specific_train_name.present? @object.instance_variable_set( :@train_name , _specific_train_name ) end end def specific_train_name ::TokyoMetro::Modules::Common::Dictionary::RomanceCar.train_names[ @object.same_as ] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tokyo_metro-0.10.1 | lib/tokyo_metro/factory/convert/common/api/meta_class/train_infos/romance_car/info.rb |