examples/properties/collections.rb in transcriber-0.0.9 vs examples/properties/collections.rb in transcriber-0.0.10
- old
+ new
@@ -2,11 +2,11 @@
class Customer < Transcriber::Resource
property :login
end
-@customers = Customer.parse([{"login" => "jackiechan2010"},
- {"login" => "brucelee"},
- {"login" => "vcr2"}])
+@customers = Customer.parse([{login: "jackiechan2010"},
+ {login: "brucelee"},
+ {login: "vcr2"}])
puts "root: #{@customers.inspect}"
puts "resource: #{Customer.resources @customers}"