examples/properties/array_serialization.rb in rest_model-0.1.1 vs examples/properties/array_serialization.rb in rest_model-0.1.2
- old
+ new
@@ -2,7 +2,7 @@
class Customer < RestModel
property :products, type: Enumerable
end
-@root = Customer.parse({products: ['a', 'b', 'c']}).first
+@root = Customer.from_source!(products: ['a', 'b', 'c']).first
inspect_rest_model(@root)