I am using Ruby on Rails and need to read the contents of an xml file into an array?
I pulled the data from an API using the following:
uri = URI.parse("myAPIurl.com&show=storeID,name")
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Get.new(uri.request_uri)
response = http.request(request)
Looking for a lean method to iterate this xml file into an array using Ruby on Rails.
No comments:
Post a Comment