Sha256: 3b1dea6b62006bdc3543912f4e529d49d0ffaa669c8fbff1c0df0f96cc3c9b2e

Contents?: true

Size: 652 Bytes

Versions: 1

Compression:

Stored size: 652 Bytes

Contents

class TokyoMetro::Factory::Convert::Customize::Api::TrainTimetable::ToeiMitaLine::Info < TokyoMetro::Factory::Convert::Common::Api::MetaClass::TrainInfos::ToeiMitaLine::Info

  def process
    convert_station_name
    convert_operator
    super
  end

  private

  def convert_operator
    object.instance_variable_set( :@operator , "odpt.Operator:Toei" )
  end

  def convert_station_name
    TokyoMetro::Factory::Convert::Customize::Api::TrainTimetable::ReplaceStationName::Info.process(
      object ,
      ::TokyoMetro::Factory::Convert::Dictionary::RegexpForReplace.namboku_and_toei_mita_line_common_stations ,
      "Toei.Mita"
    )
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/factory/convert/customize/api/train_timetable/toei_mita_line/info.rb