examples/basic.rb in alexvollmer-httparty-0.2.6 vs examples/basic.rb in alexvollmer-httparty-0.3.1

- old
+ new

@@ -1,6 +1,11 @@ dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) require File.join(dir, 'httparty') require 'pp' # You can also use post, put, delete in the same fashion -pp HTTParty.get('http://twitter.com/statuses/public_timeline.json') +response = HTTParty.get('http://twitter.com/statuses/public_timeline.json') +puts response.body, response.code, response.headers.inspect + +response.each do |item| + puts item['user']['screen_name'] +end \ No newline at end of file