Class: TokyoMetro::App::Renderer::PassengerSurvey::Table::Year::Row
- Inherits:
-
MetaClass::Row
- Object
- RailsDecorateFactory
- Factory::Decorate::MetaClass
- MetaClass::Row
- TokyoMetro::App::Renderer::PassengerSurvey::Table::Year::Row
- Defined in:
- lib/tokyo_metro/app/renderer/passenger_survey/table/year/row.rb
Instance Method Summary collapse
-
#initialize(request, passenger_survey_info, n, max_passenger_journey_in_graph, make_graph, passenger_survey_infos_all_in_the_same_year) ⇒ Row
constructor
A new instance of Row.
- #render ⇒ Object
Methods inherited from MetaClass::Row
rectangle_height, #render_order, #render_svg_domain_in_table
Constructor Details
#initialize(request, passenger_survey_info, n, max_passenger_journey_in_graph, make_graph, passenger_survey_infos_all_in_the_same_year) ⇒ Row
Returns a new instance of Row.
3 4 5 6 7 8 9 10 11 |
# File 'lib/tokyo_metro/app/renderer/passenger_survey/table/year/row.rb', line 3 def initialize( request , passenger_survey_info , n , max_passenger_journey_in_graph , make_graph , passenger_survey_infos_all_in_the_same_year ) super( request , passenger_survey_info , n , max_passenger_journey_in_graph , make_graph ) set_order( passenger_survey_infos_all_in_the_same_year ) end |
Instance Method Details
#render ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/tokyo_metro/app/renderer/passenger_survey/table/year/row.rb', line 13 def render h.render inline: <<-HAML , type: :haml , locals: h_locals %tr{ class: [ :passenger_survey_table_row , cycle( :odd_row , :even_row ) ] , "data-href" => passenger_survey_info.station_page_name } - passenger_survey_info_decorated = passenger_survey_info.decorate = this.render_order = passenger_survey_info_decorated.render_station_name_in_table = passenger_survey_info_decorated.render_passenger_journeys = this.render_svg_domain_in_table HAML end |