Sha256: c281378333325e2cfd3f74b3e3cb8327f1fdc9e55a492da1dc23ba315de1744b
Contents?: true
Size: 314 Bytes
Versions: 2
Compression:
Stored size: 314 Bytes
Contents
$:.push 'lib'; require 'transcriber' class Root < Transcriber::Resource embeds_one :item, start_key: :ugly_nesting_key end class Item < Transcriber::Resource property :id end root = Root.parse({"ugly_nesting_key" => {"id" => 2000}}).first puts "root: #{root.inspect}" puts "resource: #{root.resource}"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
transcriber-0.0.3 | examples/embeds_one/with_start_key.rb |
transcriber-0.0.2 | examples/embeds_one/with_start_key.rb |