examples/embeds_one/simple.rb in transcriber-0.0.23 vs examples/embeds_one/simple.rb in transcriber-0.0.24
- old
+ new
@@ -3,10 +3,10 @@
class Root < Transcriber::Resource
embeds_one :item
end
class Item < Transcriber::Resource
- property :id
+ properties :id, :name
end
@root = Root.parse({item: {id: 2000}}).first
puts "root: #{@root.inspect}"