Class: TokyoMetro::Factory::Convert::Patch::Api::TrainTimetable::YurakuchoLine::Info

Inherits:
Common::Api::MetaClass::Fundamental::Normal show all
Defined in:
lib/tokyo_metro/factory/convert/patch/api/train_timetable/yurakucho_line/info.rb

Instance Attribute Summary

Attributes inherited from Common::Api::MetaClass::Fundamental

#object

Instance Method Summary collapse

Methods inherited from Common::Api::MetaClass::Fundamental::Normal

process

Constructor Details

#initialize(object, train_timetables) ⇒ Info

Returns a new instance of Info.



5
6
7
8
9
# File 'lib/tokyo_metro/factory/convert/patch/api/train_timetable/yurakucho_line/info.rb', line 5

def initialize( object , train_timetables )
  super( object )
  @train_timetables = train_timetables
  set_valid_train
end

Instance Method Details

#processObject



11
12
13
# File 'lib/tokyo_metro/factory/convert/patch/api/train_timetable/yurakucho_line/info.rb', line 11

def process
  @valid_train.instance_variable_set( :@weekdays , valid_station_times_on_weekdays )
end