Class: TokyoMetro::App::Renderer::RealTimeInfos::MetaDatum::MetaClass

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

Direct Known Subclasses

TrainLocationInfos, TrainOperationInfos

Instance Method Summary collapse

Constructor Details

#initialize(request, time_infos) ⇒ MetaClass

Returns a new instance of MetaClass.



3
4
5
6
# File 'lib/tokyo_metro/app/renderer/real_time_infos/meta_datum/meta_class.rb', line 3

def initialize( request , time_infos )
  super( request )
  @time_infos = time_infos
end

Instance Method Details

#render_dc_date_enObject



12
13
14
# File 'lib/tokyo_metro/app/renderer/real_time_infos/meta_datum/meta_class.rb', line 12

def render_dc_date_en
  render_time_info_en( dc_date_times , :dc_date , "As of" )
end

#render_dc_date_jaObject



8
9
10
# File 'lib/tokyo_metro/app/renderer/real_time_infos/meta_datum/meta_class.rb', line 8

def render_dc_date_ja
  render_time_info_ja( dc_date_times , :dc_date , "データ生成時刻" )
end

#render_next_update_time_enObject



20
21
22
# File 'lib/tokyo_metro/app/renderer/real_time_infos/meta_datum/meta_class.rb', line 20

def render_next_update_time_en
  render_time_info_en( validity_times , :validity , "Next Update:" )
end

#render_next_update_time_jaObject



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

def render_next_update_time_ja
  render_time_info_ja( validity_times , :validity , "データ有効期限・次回更新予定" )
end