Sha256: bf1ccf0382e7d0da26af155cee54ead6b25c69eb5451e622f9dcb65679bdd816

Contents?: true

Size: 921 Bytes

Versions: 1

Compression:

Stored size: 921 Bytes

Contents

class TokyoMetro::Factory::Convert::Patch::Api::TrainTimetable::YurakuchoLine::Info < TokyoMetro::Factory::Convert::Common::Api::MetaClass::Fundamental::Normal

  using TokyoMetro::Factory::Convert::Patch::Api::TrainTimetable::YurakuchoLine::Refinement::Info

  def initialize( object , train_timetables )
    super( object )
    @train_timetables = train_timetables
    set_valid_train
  end

  def process
    @valid_train.instance_variable_set( :@weekdays , valid_station_times_on_weekdays )
  end

  private

  # 有楽町線
  def invalid_train
    @object
  end

  # @note 副都心線
  def set_valid_train
    @valid_train = invalid_train.valid_fukutoshin_line_train( @train_timetables )
  end

  def valid_station_times_on_weekdays
    ::TokyoMetro::Factory::Convert::Patch::Api::TrainTimetable::YurakuchoLine::InternalFactory::ValidStationTimesOnWeekdays::Info.get_by( invalid_train , @valid_train )
  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/info.rb