examples/update_attributes/simple.rb in rest_model-0.1.1 vs examples/update_attributes/simple.rb in rest_model-0.1.2
- old
+ new
@@ -2,9 +2,9 @@
class Customer < RestModel
property :login
end
-@root = Customer.parse({login: 'jackiechan2010'}).first
+@root = Customer.from_source!(login: 'jackiechan2010').first
@root.update_attributes(login: 'newjackiechan2010')
inspect_rest_model(@root)
\ No newline at end of file