examples/embeds_many/with_if.rb in transcriber-0.0.3 vs examples/embeds_many/with_if.rb in transcriber-0.0.4

- old
+ new

@@ -7,15 +7,15 @@ class Root < Transcriber::Resource property :id embeds_many :items, if: proc {id == "10"} end -root = Root.parse({"id" => 10, "items" => [{"id" => 2000}]}).first +@root_with_items = Root.parse({"id" => 10, "items" => [{"id" => 2000}]}).first -puts "root: #{root.inspect}" -puts "resource: #{root.resource}" +puts "root: #{@root_with_items.inspect}" +puts "resource: #{@root_with_items.resource}" -root = Root.parse({"id" => 1, "items" => [{"id" => 2000}]}).first +@root_without_items = Root.parse({"id" => 1, "items" => [{"id" => 2000}]}).first -puts "root: #{root.inspect}" -puts "resource: #{root.resource}" +puts "root: #{@root_without_items.inspect}" +puts "resource: #{@root_without_items.resource}" \ No newline at end of file