Class: TokyoMetro::App::Renderer::PassengerSurvey::SideMenu::Station

Inherits:
MetaClass show all
Defined in:
lib/tokyo_metro/app/renderer/passenger_survey/side_menu/station.rb

Instance Method Summary collapse

Methods inherited from MetaClass

#render

Constructor Details

#initialize(request, station_info) ⇒ Station

Returns a new instance of Station.



3
4
5
6
7
8
9
10
11
12
# File 'lib/tokyo_metro/app/renderer/passenger_survey/side_menu/station.rb', line 3

def initialize( request , station_info )
  super( request )
  @station_infos = station_info.railway_lines_of_tokyo_metro

  if station_info.at_kita_ayase? or station_info.between_honancho_and_nakano_shimbashi?
    @prior_railway_line_ids = station_info.railway_line.main_railway_line.id
  else
    @prior_railway_line_ids = @station_infos.pluck( :railway_line_id )
  end
end