$:.push 'lib'; require 'transcriber' class Entry < Transcriber::Resource property :id end class Root < Transcriber::Resource embeds_one :item, class_name: :entry end root = Root.parse({"item" => {"id" => 2000}}).first puts "root: #{root.inspect}" puts "resource: #{root.resource}"