Class: TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::ChiyodaLine::Top::ToOdakyuSemiExpress

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

Instance Method Summary collapse

Methods inherited from MetaClass::ThroughOperation::EachType

#render, #render_precise_infos

Constructor Details

#initialize(request) ⇒ ToOdakyuSemiExpress

Returns a new instance of ToOdakyuSemiExpress.



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/chiyoda_line/top/to_odakyu_semi_express.rb', line 3

def initialize( request )
  super( request )

  @train_type = ::TrainType.find_by( same_as: "custom.TrainType:TokyoMetro.Chiyoda.SemiExpress.ForOdakyu" )
  @direction = [
    ::Station::Info.find_by( same_as: "odpt.Station:Odakyu.Odawara.SeijoGakuenMae" ) ,
    ::Station::Info.find_by( same_as: "odpt.Station:Odakyu.Odawara.Noborito" ) ,
    ::Station::Info.find_by( same_as: "odpt.Station:Odakyu.Odawara.ShinYurigaoka" ) ,
    ::Station::Info.find_by( same_as: "odpt.Station:Odakyu.Odawara.Machida" ) ,
    ::Station::Info.find_by( same_as: "odpt.Station:Odakyu.Odawara.Ebina" )
  ]
  @railway_line_and_terminal_station_info = ::TokyoMetro::App::Renderer::TravelTimeInfo::MetaClass::ThroughOperation::EachType::RailwayLineAndTerminalStation.new(
      @request ,
    ::RailwayLine.find_by( same_as: "odpt.Railway:Odakyu.Odawara" ) ,
    ::Station::Info.find_by( same_as: "odpt.Station:Odakyu.Odawara.HonAtsugi" )
  )
end