Class: TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::FukutoshinLine::Bottom::ToTokyuToyokoAndMinatomiraiLine
- Inherits:
-
MetaClass::ThroughOperation::EachType
- Object
- RailsDecorateFactory
- Factory::Decorate::MetaClass
- MetaClass::ThroughOperation::EachType
- TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::FukutoshinLine::Bottom::ToTokyuToyokoAndMinatomiraiLine
- Defined in:
- lib/tokyo_metro/app/renderer/travel_time_info/railway_line/fukutoshin_line/bottom/to_tokyu_toyoko_and_minatomirai_line.rb
Instance Method Summary collapse
-
#initialize(request) ⇒ ToTokyuToyokoAndMinatomiraiLine
constructor
A new instance of ToTokyuToyokoAndMinatomiraiLine.
Methods inherited from MetaClass::ThroughOperation::EachType
#render, #render_precise_infos
Constructor Details
#initialize(request) ⇒ ToTokyuToyokoAndMinatomiraiLine
Returns a new instance of ToTokyuToyokoAndMinatomiraiLine.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/tokyo_metro/app/renderer/travel_time_info/railway_line/fukutoshin_line/bottom/to_tokyu_toyoko_and_minatomirai_line.rb', line 3 def initialize( request ) super( request ) @direction = [ ::Station::Info.find_by( same_as: "odpt.Station:Tokyu.Toyoko.NakaMeguro" ) , ::Station::Info.find_by( same_as: "odpt.Station:Tokyu.Toyoko.MusashiKosugi" ) , ::Station::Info.find_by( same_as: "odpt.Station:Tokyu.Toyoko.Kikuna" ) , ::Station::Info.find_by( same_as: "odpt.Station:Tokyu.Toyoko.Yokohama" ) ] @via = ::RailwayLine.find_by( same_as: "odpt.Railway:Tokyu.Toyoko" ) @railway_line_and_terminal_station_info = ::TokyoMetro::App::Renderer::TravelTimeInfo::MetaClass::ThroughOperation::EachType::RailwayLineAndTerminalStation.new( @request , ::RailwayLine.find_by( same_as: "odpt.Railway:YokohamaMinatomiraiRailway.Minatomirai" ) , ::Station::Info.find_by( same_as: "odpt.Station:YokohamaMinatomiraiRailway.Minatomirai.MotomachiChukagai" ) ) end |