lib/currency_cloud/actions/create.rb in currency_cloud-0.7.1 vs lib/currency_cloud/actions/create.rb in currency_cloud-0.7.2
- old
+ new
@@ -1,9 +1,10 @@
module CurrencyCloud
module Actions
module Create
- def create(params={})
- post("create", params)
+ def create(params = {})
+ attrs = client.post("create", params)
+ new(attrs)
end
end
end
-end
\ No newline at end of file
+end