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

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

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

Constructor Details

#initialize(object) ⇒ Info

Returns a new instance of Info.



3
4
5
6
7
8
9
# File 'lib/tokyo_metro/factory/convert/customize/api/station_facility/chiyoda_branch_line/info.rb', line 3

def initialize( object )
  super( object )
  @hash_for_converting_railway_line = {
    from: ::TokyoMetro::Modules::Common::Dictionary::RailwayLine::StringInfo.chiyoda_same_as ,
    to: ::TokyoMetro::Modules::Common::Dictionary::RailwayLine::StringInfo.chiyoda_branch_same_as
  }
end

Instance Method Details

#processObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/tokyo_metro/factory/convert/customize/api/station_facility/chiyoda_branch_line/info.rb', line 11

def process
  case @object.same_as
  when "odpt.StationFacility:TokyoMetro.Ayase"
    convert_railway_line_name_of_platform_infos_to_chiyoda_branch_line
    convert_railway_line_name_of_transfer_infos_to_chiyoda_branch_line

  when "odpt.StationFacility:TokyoMetro.KitaAyase"
    convert_railway_line_name_of_platform_infos_to_chiyoda_branch_line
  end
end