Class: TokyoMetro::Factory::Convert::Customize::Api::StationFacility::ChiyodaBranchLine::Info
- Inherits:
-
TokyoMetro::Factory::Convert::Common::Api::MetaClass::Fundamental::Normal
- Object
- TokyoMetro::Factory::Convert::Common::Api::MetaClass::Fundamental
- TokyoMetro::Factory::Convert::Common::Api::MetaClass::Fundamental::Normal
- TokyoMetro::Factory::Convert::Customize::Api::StationFacility::ChiyodaBranchLine::Info
- 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
Instance Method Summary collapse
-
#initialize(object) ⇒ Info
constructor
A new instance of Info.
- #process ⇒ Object
Methods inherited from TokyoMetro::Factory::Convert::Common::Api::MetaClass::Fundamental::Normal
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
#process ⇒ Object
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 |