Sha256: 5f0637fdde1e27c152d5506dc0d50eb4b037b3045419efd27eb5992afa9b91d5

Contents?: true

Size: 853 Bytes

Versions: 1

Compression:

Stored size: 853 Bytes

Contents

class TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::ChiyodaLine::Bottom::ChiyodaBranchLine < TokyoMetro::Factory::Decorate::MetaClass

  def initialize( request , branch_railway_line )
    super( request )
    @branch_railway_line = branch_railway_line

    @kita_ayase = @branch_railway_line.station_infos.find_by( same_as: "odpt.Station:TokyoMetro.ChiyodaBranch.KitaAyase" )
  end

  def render
    h.render inline: <<-HAML , type: :haml , locals: h_locals
%td{ class: [ :railway_line_column , :chiyoda , :kita_ayase ] }
  %div{ class: :travel_time_info_square }<
    = " "
%td{ class: [ :station_info , :auto_width , :kita_ayase ] }
  = kita_ayase.decorate.render_name_in_travel_time_infos
    HAML
  end

  private

  def h_locals
    super.merge({
      railway_line: @branch_railway_line ,
      kita_ayase: @kita_ayase
    })
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/app/renderer/travel_time_info/railway_line/chiyoda_line/bottom/chiyoda_branch_line.rb