Class: TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::YurakuchoAndFukutoshinLine::Top::ToSeibuIkebukuroLine

Inherits:
MetaClass::ThroughOperation::EachType show all
Defined in:
lib/tokyo_metro/app/renderer/travel_time_info/railway_line/yurakucho_and_fukutoshin_line/top/to_seibu_ikebukuro_line.rb

Instance Method Summary collapse

Methods inherited from MetaClass::ThroughOperation::EachType

#render, #render_precise_infos

Constructor Details

#initialize(request) ⇒ ToSeibuIkebukuroLine

Returns a new instance of ToSeibuIkebukuroLine.



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/tokyo_metro/app/renderer/travel_time_info/railway_line/yurakucho_and_fukutoshin_line/top/to_seibu_ikebukuro_line.rb', line 3

def initialize( request )
  super( request )

  @from_station = ::Station::Info.find_by( same_as: "odpt.Station:TokyoMetro.Yurakucho.KotakeMukaihara" )
  # @from_station = ::Station::Info.find_by( same_as: "odpt.Station:TokyoMetro.Fukutoshin.KotakeMukaihara" )

  @direction = [
    ::Station::Info.find_by( same_as: "odpt.Station:Seibu.Yurakucho.Nerima" ) ,
    ::Station::Info.find_by( same_as: "odpt.Station:Seibu.Ikebukuro.Tokorozawa" )
  ]

  @railway_line_and_terminal_station_info = ::TokyoMetro::App::Renderer::TravelTimeInfo::MetaClass::ThroughOperation::EachType::RailwayLineAndTerminalStation.new(
    @request ,
    ::RailwayLine.find_by( same_as: "odpt.Railway:Seibu.Ikebukuro" ) ,
    ::Station::Info.find_by( same_as: "odpt.Station:Seibu.Ikebukuro.Hanno" )
  )
end