Class: TokyoMetro::Factory::Convert::Customize::Api::StationFacility::RailwayLineNameInPlatformTransferInfos::Info

Inherits:
TokyoMetro::Factory::Convert::Common::Api::MetaClass::Fundamental::Normal show all
Includes:
ClassNameLibrary::Api::StationFacility
Defined in:
lib/tokyo_metro/factory/convert/customize/api/station_facility/railway_line_name_in_platform_transfer_infos/info.rb

Defined Under Namespace

Classes: EachTransferInfo

Instance Attribute Summary

Attributes inherited from TokyoMetro::Factory::Convert::Common::Api::MetaClass::Fundamental

#object

Instance Method Summary collapse

Methods inherited from TokyoMetro::Factory::Convert::Common::Api::MetaClass::Fundamental::Normal

process

Methods inherited from TokyoMetro::Factory::Convert::Common::Api::MetaClass::Fundamental

#initialize

Constructor Details

This class inherits a constructor from TokyoMetro::Factory::Convert::Common::Api::MetaClass::Fundamental

Instance Method Details

#processObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/tokyo_metro/factory/convert/customize/api/station_facility/railway_line_name_in_platform_transfer_infos/info.rb', line 5

def process
  replacing_dictionary = ::TokyoMetro::Factory::Convert::Customize::Api::StationFacility::RailwayLineNameInPlatformTransferInfos.replacing_railway_lines
  ignored_dictionary = nil

  @object.platform_infos.each do | platform_info |
    if platform_info.transfer_infos.present?
      ary = self.class.platform_transfer_list_class.new

      platform_info.transfer_infos.each do | transfer_info |
        ::TokyoMetro::Factory::Convert::Customize::Api::StationFacility::RailwayLineNameInPlatformTransferInfos::Info::EachTransferInfo.process( transfer_info , ary , replacing_dictionary , ignored_dictionary , @object.same_as )
      end

      platform_info.instance_eval do
        @transfer_infos = ary
      end

    end
  end
end