address = {zip_code: '1234567'} %w(zip_code prefecture_id city_name address).each do |variable| eval("self.#{'new_address_' + variable} = address[variable]") end
address = {zip_code: '1234567'} %w(zip_code prefecture_id city_name address).each do |variable| eval("self.#{'new_address_' + variable} = address[variable]") end