Class: TokyoMetro::App::Renderer::RealTimeInfos::MetaDatum::TrainOperationInfos

Inherits:
MetaClass show all
Defined in:
lib/tokyo_metro/app/renderer/real_time_infos/meta_datum/train_operation_infos.rb

Instance Method Summary collapse

Methods inherited from MetaClass

#initialize, #render_dc_date_en, #render_dc_date_ja, #render_next_update_time_en, #render_next_update_time_ja

Constructor Details

This class inherits a constructor from TokyoMetro::App::Renderer::RealTimeInfos::MetaDatum::MetaClass

Instance Method Details

#renderObject



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/tokyo_metro/app/renderer/real_time_infos/meta_datum/train_operation_infos.rb', line 3

def render
  h.render inline: <<-HAML , type: :haml , locals: { this: self }
%li{ class: :train_operation_info }
%ul{ class: :titles }
  = this.render_title
%ul{ class: :time_infos_of_category }
  = this.render_dc_date_ja
  = this.render_next_update_time_ja
  %ul{ class: [ :en , :text_en ] }<
    = this.render_dc_date_en
    = this.render_next_update_time_en
  HAML
end

#render_titleObject



17
18
19
# File 'lib/tokyo_metro/app/renderer/real_time_infos/meta_datum/train_operation_infos.rb', line 17

def render_title
  render_title_of_each_content( :train_operation , ::TrainOperation::InfoDecorator.common_title_ja , ::TrainOperation::InfoDecorator.common_title_en )
end