Sha256: 105fe0d911019f5e68993ca2ca002611fb57101dc21663516a84f20030dd4c09

Contents?: true

Size: 298 Bytes

Versions: 17

Compression:

Stored size: 298 Bytes

Contents

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

class Item < Transcriber::Resource
  property :id, type: Integer
end

class Root < Transcriber::Resource
  embeds_many :items
end

@root = Root.parse({items: [{id: 2000}, {id: 2001}]}).first

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
transcriber-0.0.26 examples/embeds_many/simple.rb
transcriber-0.0.25 examples/embeds_many/simple.rb
transcriber-0.0.24 examples/embeds_many/simple.rb
transcriber-0.0.23 examples/embeds_many/simple.rb
transcriber-0.0.22 examples/embeds_many/simple.rb
transcriber-0.0.21 examples/embeds_many/simple.rb
transcriber-0.0.20 examples/embeds_many/simple.rb
transcriber-0.0.19 examples/embeds_many/simple.rb
transcriber-0.0.18 examples/embeds_many/simple.rb
transcriber-0.0.17 examples/embeds_many/simple.rb
transcriber-0.0.16 examples/embeds_many/simple.rb
transcriber-0.0.15 examples/embeds_many/simple.rb
transcriber-0.0.14 examples/embeds_many/simple.rb
transcriber-0.0.13 examples/embeds_many/simple.rb
transcriber-0.0.12 examples/embeds_many/simple.rb
transcriber-0.0.11 examples/embeds_many/simple.rb
transcriber-0.0.10 examples/embeds_many/simple.rb