class TokyoMetro::App::Renderer::TravelTimeInfo::MetaClass::ThroughOperation::EachType::RailwayLineAndTerminalStation

Public Class Methods

new( request , railway_line , terminal_station ) click to toggle source
Calls superclass method
# File lib/tokyo_metro/app/renderer/travel_time_info/meta_class/through_operation/each_type/railway_line_and_terminal_station.rb, line 3
def initialize( request , railway_line , terminal_station )
  super( request )
  @railway_line = railway_line
  @terminal_station = terminal_station
end

Public Instance Methods

render( suffix: nil ) click to toggle source
# File lib/tokyo_metro/app/renderer/travel_time_info/meta_class/through_operation/each_type/railway_line_and_terminal_station.rb, line 9
  def render( suffix: nil )
    h.render inline: <<-HAML , type: :haml , locals: h_locals( suffix )
%span{ class: :railway_line }<
  = railway_line.name_ja_with_operator_name_precise_and_without_parentheses
%span{ class: :terminal_station }<>
  = "「" + terminal_station.name_ja + "」"
- if suffix.present?
  %span<
    = suffix
    HAML
  end

Private Instance Methods

h_locals( suffix ) click to toggle source
Calls superclass method
# File lib/tokyo_metro/app/renderer/travel_time_info/meta_class/through_operation/each_type/railway_line_and_terminal_station.rb, line 23
def h_locals( suffix )
  super().merge({
    railway_line: @railway_line ,
    terminal_station: @terminal_station ,
    suffix: suffix
  })
end