Sha256: 80d269fc6a2fe5e589afc84e15f393aefc8b3b58887845a2c6eb610595d53e80
Contents?: true
Size: 298 Bytes
Versions: 2
Compression:
Stored size: 298 Bytes
Contents
$:.push 'lib'; require 'transcriber' class Entry < Transcriber::Resource property :id end class Root < Transcriber::Resource embeds_many :items, class_name: :entry end root = Root.parse({"items" => [{"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_many/with_class_name.rb |
transcriber-0.0.2 | examples/embeds_many/with_class_name.rb |