lib/flattr/client/things.rb in flattr-0.3.0 vs lib/flattr/client/things.rb in flattr-0.3.1

- old
+ new

@@ -50,11 +50,10 @@ # Returns new thing # Raises Flattr::Error::BadRequest on validation error # Raises Flattr::Error::NotFound if thing was not found def thing_new(url, opts = {}) response = post("/rest/v2/things", opts.merge(:url => url)) - thing = thing(response["id"]) - Flattr::Thing.new(thing) + thing(response["id"]) end # Public: Update a thing # # id - id of the thing to update