Class: TokyoMetro::App::Renderer::StationTimetable::Group

Inherits:
Factory::Decorate::MetaClass show all
Defined in:
lib/tokyo_metro/app/renderer/station_timetable/group.rb

Defined Under Namespace

Classes: EachRailwayLine

Instance Method Summary collapse

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 , station_timetables )
  super( request )
  @station_info = station_info
  @station_timetables = station_timetables
end

Instance Method Details

#renderObject



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