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

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

Defined Under Namespace

Classes: EachRailwayDirection

Instance Method Summary collapse

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

Instance Method Details

#renderObject



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