Sha256: 41fb3a94af51236eee1633f051beadddcb77e8dc3bf7132f0d8f42127cc1ef47
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
class TokyoMetro::Factory::Convert::Common::Api::Station::ConnectingRailwayLine::Info < TokyoMetro::Factory::Convert::Common::Api::MetaClass::Fundamental::Normal include ::TokyoMetro::ClassNameLibrary::Api::Station def initialize( object , replacing , ignored ) super( object ) @replacing = replacing @ignored = ignored # puts self.class # puts "replacing: #{ replacing.class }" # puts "ignored: #{ ignored.class }" # puts "" end def process if to_process? convert_connecting_railway_line_infos end end private def to_process? @object.connecting_railway_lines.present? end def convert_connecting_railway_line_infos ary = self.class.connecting_railway_line_list_class.new @object.connecting_railway_lines.each do | info | ::TokyoMetro::Factory::Convert::Common::Api::Station::ConnectingRailwayLine::Info::ConnectingRailwayLine::Info.process( info , ary , @replacing , @ignored , @object.same_as ) end @object.instance_variable_set( :@connecting_railway_lines , ary ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tokyo_metro-0.10.1 | lib/tokyo_metro/factory/convert/common/api/station/connecting_railway_line/info.rb |