Sha256: 87b096cb00521de0645a4abf1f26f035da07ad9dcc8690807f0af33ad8b1c07d

Contents?: true

Size: 279 Bytes

Versions: 1

Compression:

Stored size: 279 Bytes

Contents

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

class Item < Transcriber::Resource
  property :id
end

class Root < Transcriber::Resource
  embeds_many :items
end

@root = Root.parse({"items" => [{"id" => 2000}]}).first

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
transcriber-0.0.3 examples/embeds_many/simple.rb