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