Sha256: 7d1e6438ba759ec4cbc74f59329bb62994d016417196193fc60ac397a686ffd0
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
require 'faraday' require 'crack' require 'hashie' module Reevoo class Client def initialize(trkref, password) @connection = Faraday::Connection.new "http://#{trkref}:#{password}@api.reevoo.com/#{trkref}/" end def products resp = @connection.get 'product_review_summary.xml' hash = Crack::XML.parse(resp.body) mash = Hashie::Mash.new(hash) products = mash.first[1].first[1] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reevoo-0.0.1 | lib/reevoo.rb |