Class: TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::ChiyodaLine::Top::ToOdakyuRomanceCar
- Inherits:
-
MetaClass::ThroughOperation::EachType
- Object
- RailsDecorateFactory
- Factory::Decorate::MetaClass
- MetaClass::ThroughOperation::EachType
- TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::ChiyodaLine::Top::ToOdakyuRomanceCar
- Defined in:
- lib/tokyo_metro/app/renderer/travel_time_info/railway_line/chiyoda_line/top/to_odakyu_romance_car.rb
Instance Method Summary collapse
-
#initialize(request) ⇒ ToOdakyuRomanceCar
constructor
A new instance of ToOdakyuRomanceCar.
Methods inherited from MetaClass::ThroughOperation::EachType
#render, #render_precise_infos
Constructor Details
#initialize(request) ⇒ ToOdakyuRomanceCar
Returns a new instance of ToOdakyuRomanceCar.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/tokyo_metro/app/renderer/travel_time_info/railway_line/chiyoda_line/top/to_odakyu_romance_car.rb', line 3 def initialize( request ) super( request ) @train_type = ::TrainType.find_by( same_as: "custom.TrainType:TokyoMetro.Chiyoda.RomanceCar.Normal" ) @railway_line_and_terminal_station_info = [ ::TokyoMetro::App::Renderer::TravelTimeInfo::MetaClass::ThroughOperation::EachType::RailwayLineAndTerminalStation.new( @request , ::RailwayLine.find_by( same_as: "odpt.Railway:Odakyu.Tama" ) , ::Station::Info.find_by( same_as: "odpt.Station:Odakyu.Tama.Karakida" ) ) , ::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" ) ) , ::TokyoMetro::App::Renderer::TravelTimeInfo::MetaClass::ThroughOperation::EachType::RailwayLineAndTerminalStation.new( @request , ::RailwayLine.find_by( same_as: "odpt.Railway:HakoneTozan.Rail.OdawaraSide" ) , ::Station::Info.find_by( same_as: "odpt.Station:HakoneTozan.Rail.HakoneYumoto" ) ) ] end |