class TokyoMetro::App::Renderer::FareTable::LinkToRailwayLinePage::Header
Public Class Methods
new( request , station_info_decorated , *railway_lines )
click to toggle source
Calls superclass method
TokyoMetro::App::Renderer::Concerns::Header::Content::new
# File lib/tokyo_metro/app/renderer/fare_table/link_to_railway_line_page/header.rb, line 3 def initialize( request , station_info_decorated , *railway_lines ) @railway_line = railway_lines.flatten.first @station_info_decorated = station_info_decorated super( request , :title , :fare , proc_for_text_ja , proc_for_text_en , icon_size: 3 ) end
Private Instance Methods
proc_for_text_en()
click to toggle source
# File lib/tokyo_metro/app/renderer/fare_table/link_to_railway_line_page/header.rb, line 22 def proc_for_text_en ::Proc.new { @station_info_decorated.render_name_en( with_subname: true , prefix: "Fares from " , suffix: " to stations on #{ @railway_line.name_en }" ) } end
proc_for_text_ja()
click to toggle source
# File lib/tokyo_metro/app/renderer/fare_table/link_to_railway_line_page/header.rb, line 18 def proc_for_text_ja ::Proc.new { @station_info_decorated.render_name_ja( with_subname: true , suffix: "駅から#{ @railway_line.name_ja }各駅までの運賃" ) } end