Class: TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::HanzomonLine::Bottom::ToTobuLine

Inherits:
MetaClass::ThroughOperation::EachType show all
Defined in:
lib/tokyo_metro/app/renderer/travel_time_info/railway_line/hanzomon_line/bottom/to_tobu_line.rb

Instance Method Summary collapse

Methods inherited from MetaClass::ThroughOperation::EachType

#render, #render_precise_infos

Constructor Details

#initialize(request) ⇒ ToTobuLine

Returns a new instance of ToTobuLine.



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/tokyo_metro/app/renderer/travel_time_info/railway_line/hanzomon_line/bottom/to_tobu_line.rb', line 3

def initialize( request )
  super( request )

  @direction = [
    ::Station::Info.find_by( same_as: "odpt.Station:Tobu.SkyTree.KitaSenju" ) ,
    ::Station::Info.find_by( same_as: "odpt.Station:Tobu.SkyTree.Koshigaya" ) ,
    ::Station::Info.find_by( same_as: "odpt.Station:Tobu.SkyTree.Kasukabe" ) ,
    ::Station::Info.find_by( same_as: "odpt.Station:Tobu.SkyTree.TobuDobutsuKoen" )
  ]
  @via = ::RailwayLine.find_by( same_as: "odpt.Railway:Tobu.SkyTree" )
  @railway_line_and_terminal_station_info = [
    ::TokyoMetro::App::Renderer::TravelTimeInfo::MetaClass::ThroughOperation::EachType::RailwayLineAndTerminalStation.new(
      @request ,
      ::RailwayLine.find_by( same_as: "odpt.Railway:Tobu.Isesaki" ) ,
      ::Station::Info.find_by( same_as: "odpt.Station:Tobu.Isesaki.Kuki" )
    ) ,
    ::TokyoMetro::App::Renderer::TravelTimeInfo::MetaClass::ThroughOperation::EachType::RailwayLineAndTerminalStation.new(
      @request ,
      ::RailwayLine.find_by( same_as: "odpt.Railway:Tobu.Nikko" ) ,
      ::Station::Info.find_by( same_as: "odpt.Station:Tobu.Nikko.MinamiKurihashi" )
    )
  ]
end