class TokyoMetro::Factory::Convert::Patch::Api::StationFacility::PlatformTransferInfoAtKudanshita::Info
Constants
- INVALID_DIRECTION
- RAILWAY_LINE
- SAME_AS
- VALID_DIRECTION
Public Instance Methods
process()
click to toggle source
# File lib/tokyo_metro/factory/convert/patch/api/station_facility/platform_transfer_info_at_kudanshita/info.rb, line 9 def process if to_process? convert_platform_transfer_infos_at_kudanshita end end
Private Instance Methods
convert_platform_transfer_infos_at_kudanshita()
click to toggle source
# File lib/tokyo_metro/factory/convert/patch/api/station_facility/platform_transfer_info_at_kudanshita/info.rb, line 21 def convert_platform_transfer_infos_at_kudanshita @object.platform_infos.each do | platform_info | if platform_info.transfer_infos.present? platform_info.transfer_infos.each do | transfer_info | ::TokyoMetro::Factory::Convert::Common::Api::StationFacility::Platform::Transfer.process( transfer_info , railway_line: RAILWAY_LINE , railway_direction: { from: INVALID_DIRECTION , to: VALID_DIRECTION } ) end end end end
to_process?()
click to toggle source
# File lib/tokyo_metro/factory/convert/patch/api/station_facility/platform_transfer_info_at_kudanshita/info.rb, line 17 def to_process? @object.same_as == SAME_AS end