Sha256: 1f41c2181fa84ec9ea205ba4b2fa651daeea63503550bf7228cce0f9bcd59c88

Contents?: true

Size: 317 Bytes

Versions: 6

Compression:

Stored size: 317 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

6 entries across 6 versions & 1 rubygems

Version Path
transcriber-0.0.9 examples/embeds_one/with_start_key.rb
transcriber-0.0.8 examples/embeds_one/with_start_key.rb
transcriber-0.0.7 examples/embeds_one/with_start_key.rb
transcriber-0.0.6 examples/embeds_one/with_start_key.rb
transcriber-0.0.5 examples/embeds_one/with_start_key.rb
transcriber-0.0.4 examples/embeds_one/with_start_key.rb