Sha256: 82da2a3e8a0c366ee866df4d5cde541c1efbc4a8aadd58b37d3d26f6a53fab48
Contents?: true
Size: 316 Bytes
Versions: 6
Compression:
Stored size: 316 Bytes
Contents
$:.push 'lib'; require 'transcriber' class Entry < Transcriber::Resource property :id, type: Integer 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
6 entries across 6 versions & 1 rubygems