Sha256: 5cfc360216505b5ea2e169e381c3b6ce5e57b6cde54e75a5253fda7c898673e4
Contents?: true
Size: 861 Bytes
Versions: 1
Compression:
Stored size: 861 Bytes
Contents
class TokyoMetro::Factory::Convert::Patch::Api::TrainTimetable::YurakuchoLine::InternalFactory::ConvertStationName::Info::StationTime::Info < TokyoMetro::Factory::Convert::Common::Api::MetaClass::Fundamental::Normal def process convert_station_names end private def convert_station_names set_new_station_name( :@arrival_station ) set_new_station_name( :@departure_station ) end #-------- def set_new_station_name( instance_variable_name ) @object.instance_variable_set( instance_variable_name , station_name_new( instance_variable_name ) ) end def station_name_new( instance_variable_name ) station_name = @object.instance_variable_get( instance_variable_name ) if station_name.present? station_name.gsub( /(?<=\Aodpt\.Station\:TokyoMetro\.)Yurakucho/ , "Fukutoshin" ) else nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tokyo_metro-0.10.1 | lib/tokyo_metro/factory/convert/patch/api/train_timetable/yurakucho_line/internal_factory/convert_station_name/info/station_time/info.rb |