Class: TokyoMetro::App::Renderer::PassengerSurvey::Table::RailwayLine
- Inherits:
-
MetaClass
- Object
- RailsDecorateFactory
- Factory::Decorate::MetaClass
- MetaClass
- TokyoMetro::App::Renderer::PassengerSurvey::Table::RailwayLine
- Defined in:
- lib/tokyo_metro/app/renderer/passenger_survey/table/railway_line.rb
Defined Under Namespace
Instance Method Summary collapse
-
#initialize(request, passenger_survey_infos_of_the_same_railway_line, make_graph, railway_lines_including_branch, passenger_survey_infos_of_the_same_operator) ⇒ RailwayLine
constructor
A new instance of RailwayLine.
- #render_header_of_table ⇒ Object
Methods inherited from MetaClass
Constructor Details
#initialize(request, passenger_survey_infos_of_the_same_railway_line, make_graph, railway_lines_including_branch, passenger_survey_infos_of_the_same_operator) ⇒ RailwayLine
Returns a new instance of RailwayLine.
3 4 5 6 7 8 9 10 11 |
# File 'lib/tokyo_metro/app/renderer/passenger_survey/table/railway_line.rb', line 3 def initialize( request , passenger_survey_infos_of_the_same_railway_line , make_graph , railway_lines_including_branch , passenger_survey_infos_of_the_same_operator ) super( request , passenger_survey_infos_of_the_same_railway_line , make_graph ) @railway_lines_including_branch = railway_lines_including_branch @passenger_survey_infos_of_the_same_operator = passenger_survey_infos_of_the_same_operator raise "Error" unless @railway_lines_including_branch.present? @css_class_name_of_tables = @railway_lines_including_branch.first.css_class_name end |
Instance Method Details
#render_header_of_table ⇒ Object
13 14 15 |
# File 'lib/tokyo_metro/app/renderer/passenger_survey/table/railway_line.rb', line 13 def render_header_of_table ::TokyoMetro::App::Renderer::PassengerSurvey::Table::RailwayLine::Header.new( @reqeust , @make_graph , main_railway_line ).render end |