Class: TokyoMetro::App::Renderer::StationTimetable::Group::EachRailwayLine::EachRailwayDirection
- Inherits:
-
Factory::Decorate::MetaClass
- Object
- RailsDecorateFactory
- Factory::Decorate::MetaClass
- TokyoMetro::App::Renderer::StationTimetable::Group::EachRailwayLine::EachRailwayDirection
- Defined in:
- lib/tokyo_metro/app/renderer/station_timetable/group/each_railway_line/each_direction.rb
Defined Under Namespace
Classes: EachOperationDay
Instance Method Summary collapse
-
#initialize(request, station_info, railway_line, railway_direction, station_timetables) ⇒ EachRailwayDirection
constructor
A new instance of EachRailwayDirection.
- #render ⇒ Object
Constructor Details
#initialize(request, station_info, railway_line, railway_direction, station_timetables) ⇒ EachRailwayDirection
Returns a new instance of EachRailwayDirection.
3 4 5 6 7 8 9 |
# File 'lib/tokyo_metro/app/renderer/station_timetable/group/each_railway_line/each_direction.rb', line 3 def initialize( request , station_info , railway_line , railway_direction , ) super( request ) @station_info = station_info @railway_line = railway_line @railway_direction = railway_direction @station_timetables = end |
Instance Method Details
#render ⇒ Object
11 12 13 14 15 16 |
# File 'lib/tokyo_metro/app/renderer/station_timetable/group/each_railway_line/each_direction.rb', line 11 def render h.render inline: <<-HAML , type: :haml , locals: h_locals - grouped_by_operation_day.each do | station_timetables_of_each_operation_day | = station_timetables_of_each_operation_day.render HAML end |