Sha256: 7c18085379315809f5e897c5e110c1a35e01cde079ef9e1cb59d88687d3f7c95

Contents?: true

Size: 266 Bytes

Versions: 13

Compression:

Stored size: 266 Bytes

Contents

$:.push 'lib'; require 'transcriber'

class Root < Transcriber::Resource
  embeds_one :item
end

class Item < Transcriber::Resource
  property :id
end

@root = Root.parse({item: {id: 2000}}).first

puts "root:     #{@root.inspect}"
puts "resource: #{@root.resource}"

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
transcriber-0.0.22 examples/embeds_one/simple.rb
transcriber-0.0.21 examples/embeds_one/simple.rb
transcriber-0.0.20 examples/embeds_one/simple.rb
transcriber-0.0.19 examples/embeds_one/simple.rb
transcriber-0.0.18 examples/embeds_one/simple.rb
transcriber-0.0.17 examples/embeds_one/simple.rb
transcriber-0.0.16 examples/embeds_one/simple.rb
transcriber-0.0.15 examples/embeds_one/simple.rb
transcriber-0.0.14 examples/embeds_one/simple.rb
transcriber-0.0.13 examples/embeds_one/simple.rb
transcriber-0.0.12 examples/embeds_one/simple.rb
transcriber-0.0.11 examples/embeds_one/simple.rb
transcriber-0.0.10 examples/embeds_one/simple.rb