Sha256: b847c114a16c42f668deccd62d3b69d59d30497afba4b0ac521508975ed098af

Contents?: true

Size: 667 Bytes

Versions: 1

Compression:

Stored size: 667 Bytes

Contents

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

  def process
    super
    convert_station_name_of_chiyoda_branch_line
  end

  private

  def convert_station_name_of_chiyoda_branch_line
    if object.operated_only_on_chiyoda_branch_line_including_invalid?
      ::TokyoMetro::Factory::Convert::Customize::Api::TrainTimetable::ReplaceStationName::Info.process(
        object ,
        ::TokyoMetro::Factory::Convert::Dictionary::RegexpForReplace.chiyoda_branch_line_stations ,
        "ChiyodaBranch"
      )
    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/customize/api/train_timetable/chiyoda_branch_line/info.rb