Sha256: fb442f2cb6f659ea918791a97898ff1783b256440501f517b094f1bc18a64b52

Contents?: true

Size: 817 Bytes

Versions: 1

Compression:

Stored size: 817 Bytes

Contents

class TokyoMetro::Factory::Convert::Patch::Api::StationFacility::BarrierFreeFacilityLocatedAreaAtNakanoShimbashi::Info::BarrierFree::Info < TokyoMetro::Factory::Convert::Common::Api::MetaClass::Fundamental::Normal

  def process
    if to_process?
      convert_invalid_located_area
    end
  end

  private

  def to_process?
    @object.same_as == ::TokyoMetro::Factory::Convert::Patch::Api::StationFacility::BarrierFreeFacilityLocatedAreaAtNakanoShimbashi::INVALID_TOILET_NAME
  end

  def convert_invalid_located_area
    if @object.outside?
      @object.instance_variable_set( :@located_area_name , "改札内" )
      @object.instance_variable_set( :@same_as , ::TokyoMetro::Factory::Convert::Patch::Api::StationFacility::BarrierFreeFacilityLocatedAreaAtNakanoShimbashi::VALID_TOILET_NAME )
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/factory/convert/patch/api/station_facility/barrier_free_facility_located_area/info/barrier_free/info.rb