Module: TokyoMetro::Modules::Common::Info::Decision::RomanceCar

Included in:
Api::TrainLocation::Info, Api::TrainTimetable::Info, Factory::BeforeSeed::Api::MetaClass::Timetables::TrainType
Defined in:
lib/tokyo_metro/modules/common/info/decision/romance_car.rb

ロマンスカーに関連するメソッド collapse

Instance Method Details

#romance_car_on_chiyoda_line?Boolean Also known as: romance_car_train_on_chiyoda_line?

ロマンスカーか否かを判定するメソッド

Returns:

  • (Boolean)


13
14
15
# File 'lib/tokyo_metro/modules/common/info/decision/romance_car.rb', line 13

def romance_car_on_chiyoda_line?
  chiyoda_line? and limited_express_or_romance_car?
end

#romance_car_specific_train_on_chiyoda_line?Boolean

ロマンスカーの特定の列車か否かを判定するメソッド

Returns:

  • (Boolean)


7
8
9
# File 'lib/tokyo_metro/modules/common/info/decision/romance_car.rb', line 7

def romance_car_specific_train_on_chiyoda_line?
  chiyoda_line? and romance_car_specific_train?
end