Skip to content

Instantly share code, notes, and snippets.

@rottmanj
Created August 17, 2012 00:48
Show Gist options
  • Save rottmanj/3374893 to your computer and use it in GitHub Desktop.
Save rottmanj/3374893 to your computer and use it in GitHub Desktop.
shipment_method response
=> #<HTTParty::Response:0x7fb5b9a2a708 @parsed_response="{\"order\":{\"shipping_methods\":[{\"shipping_method\":{\"id\":1,\"name\":\"No Shipping\",\"cost\":\"0.0\"}}],\"id\":42,\"number\":\"R161885070\",\"item_total\":\"0.0\",\"total\":\"0.0\",\"state\":\"delivery\",\"adjustment_total\":\"0.0\",\"credit_total\":\"0.0\",\"user_id\":1,\"created_at\":\"2012-08-17T00:47:58Z\",\"updated_at\":\"2012-08-17T00:48:09Z\",\"completed_at\":null,\"payment_total\":\"0.0\",\"shipment_state\":null,\"payment_state\":\"paid\",\"email\":\"test@test.com\",\"special_instructions\":null,\"bill_address\":{\"id\":11,\"firstname\":\"test\",\"lastname\":\"test\",\"address1\":\"644 s saltair ave\",\"address2\":null,\"city\":\"Los Angeles\",\"zipcode\":\"90049\",\"phone\":\"555-555-5555\",\"company\":null,\"alternative_phone\":null,\"country_id\":214,\"state_id\":276110813,\"state_name\":null,\"country\":{\"id\":214,\"iso_name\":\"UNITED STATES\",\"iso\":\"US\",\"iso3\":\"USA\",\"name\":\"United States\",\"numcode\":840},\"state\":{\"abbr\":\"CA\",\"country_id\":214,\"id\":276110813,\"name\":\"California\"}},\"ship_address\":{\"id\":12,\"firstname\":\"test\",\"lastname\":\"test\",\"address1\":\"644 s saltair ave\",\"address2\":null,\"city\":\"Los Angeles\",\"zipcode\":\"90049\",\"phone\":\"555-555-5555\",\"company\":null,\"alternative_phone\":null,\"country_id\":214,\"state_id\":276110813,\"state_name\":null,\"country\":{\"id\":214,\"iso_name\":\"UNITED STATES\",\"iso\":\"US\",\"iso3\":\"USA\",\"name\":\"United States\",\"numcode\":840},\"state\":{\"abbr\":\"CA\",\"country_id\":214,\"id\":276110813,\"name\":\"California\"}},\"line_items\":[{\"line_item\":{\"id\":27,\"quantity\":0,\"price\":\"5.95\",\"variant_id\":2,\"variant\":{\"id\":2,\"name\":\"Recurring Membership\",\"count_on_hand\":2147483645,\"sku\":\"MS223933\",\"price\":\"5.95\",\"weight\":null,\"height\":null,\"width\":null,\"depth\":null,\"is_master\":false,\"cost_price\":\"5.95\",\"permalink\":\"recurring-membership\",\"subscribable\":true}}}],\"payments\":[],\"shipments\":[]}}", @response=#<Net::HTTPOK 200 OK readbody=true>, @headers={"content-type"=>["text/html"], "x-ua-compatible"=>["IE=Edge"], "etag"=>["\"0656701d9f4716e99e2c7e7e44c6c2b0\""], "cache-control"=>["max-age=0, private, must-revalidate"], "x-request-id"=>["ceb59bcb17e076e20b91bced154c9467"], "x-runtime"=>["0.196522"], "content-length"=>["1712"], "server"=>["WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)"], "date"=>["Fri, 17 Aug 2012 00:48:09 GMT"], "connection"=>["close"]}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment