class TokyoMetro::Factory::Convert::Patch::Api::StationFacility::SurroundingArea::Generate::Info::Platform::Info::SurroundingArea

Public Instance Methods

process() click to toggle source
# File lib/tokyo_metro/factory/convert/patch/api/station_facility/surrounding_area/generate/info/platform/info/surrounding_area.rb, line 3
def process
  ary = ::Array.new
  @object.each do | item |
    place_name_new = ::TokyoMetro::Factory::Convert::Patch::Api::StationFacility::SurroundingArea.dictionary[ item ]
    if place_name_new.present?
      ary << place_name_new
    else
      ary << item
    end
  end
  @object = ary
end