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

Inherits:
Factory::Decorate::MetaClass
  • Object
show all
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

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

Instance Method Details

#renderObject



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