Sha256: 4ff9aad666bc6e5a6925c99c1bf42a19e7008b383863c237f64a608b35825ebf

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

class TokyoMetro::Factory::Convert::Patch::Api::StationTimetable::NakanoSakaueOnMarunouchiBranchLine::Info < TokyoMetro::Factory::Convert::Common::Api::MetaClass::Fundamental::Normal

  INVALID_NAME = "odpt.StationTimetable:TokyoMetro.Marunouchi.NakanoSakaue.Honancho"
  VALID_NAME = "odpt.StationTimetable:TokyoMetro.MarunouchiBranch.NakanoSakaue.Honancho"

  # 「丸ノ内支線 中野坂上駅からの方南町方面の時刻表」に関する処理
  # @return [nil]
  # @note 誤:
  #   @same_as == "odpt.StationTimetable:TokyoMetro.Marunouchi.NakanoSakaue.Honancho" - 「丸ノ内線 中野坂上駅からの方南町方面の時刻表」
  # @note 正:
  #   @same_as == "odpt.StationTimetable:TokyoMetro.MarunouchiBranch.NakanoSakaue.Honancho" - 「丸ノ内支線 中野坂上駅からの方南町方面の時刻表」
  def process
    if to_process?
      @object.instance_variable_set( :@same_as , VALID_NAME )
    end
  end

  private

  def to_process?
    @object.at_nakano_sakaue? and @object.same_as?( INVALID_NAME )
  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/station_timetable/nakano_sakaue_on_marunouchi_branch_line/info.rb