Class: TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::ChiyodaLine::Bottom

Inherits:
MetaClass::ThroughOperation show all
Defined in:
lib/tokyo_metro/app/renderer/travel_time_info/railway_line/chiyoda_line/bottom.rb

Defined Under Namespace

Classes: ChiyodaBranchLine, ToJrJobanLine

Instance Method Summary collapse

Methods included from MetaClass::Columns

#columns

Constructor Details

#initialize(request, left_columns, columns_next_to_railway_line, right_columns, branch_railway_line) ⇒ Bottom

Returns a new instance of Bottom.



3
4
5
6
7
# File 'lib/tokyo_metro/app/renderer/travel_time_info/railway_line/chiyoda_line/bottom.rb', line 3

def initialize( request , left_columns , columns_next_to_railway_line , right_columns , branch_railway_line )
  super( request , left_columns , columns_next_to_railway_line , right_columns )
  @position = :bottom
  @branch_railway_line = branch_railway_line
end

Instance Method Details

#renderObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/tokyo_metro/app/renderer/travel_time_info/railway_line/chiyoda_line/bottom.rb', line 9

def render
  h.render inline: <<-HAML , type: :haml , locals: h_locals
%tr{ class: [ :through_operation_info_row , position ] , colspan: columns }
%tr{ class: [ :through_operation_info_row , position ] }
%td{ class: :through_operation_infos , colspan: ( left_columns + columns_next_to_railway_line ) , rowspan: 2 }
  = jr_joban_line.render
%td{ class: [ :railway_line_column , :chiyoda_joban ] , rowspan: 2 }<
  = " "
- ( right_columns - 2 ).times do
  %td{ class: :empty_column , rowspan: 2 }<
    = " "
= chiyoda_branch_line.render

%tr<
%td{ colspan: 2 }<
  = " "

%tr{ class: [ :empty_row , position ] }
%td{ colspan: columns }<
  = " "

%tr{ class: position }
%td{ colspan: columns }
  %div{ class: :info }
    %div{ class: :icon }
      %div{ class: :text_ja }<
        = "北千住 - 綾瀬を通過する際の運賃のご案内"
      %div{ class: :text_en }<
        = "Fare through between Kita-senju and Ayase"
  HAML
end