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