Sha256: 169beb76736839a58ba3323e7a0efba230c704431706146f84de4ae238049ae3
Contents?: true
Size: 288 Bytes
Versions: 17
Compression:
Stored size: 288 Bytes
Contents
$:.push 'lib'; require 'transcriber' class Entry < Transcriber::Resource property :id end class Root < Transcriber::Resource embeds_one :item, class_name: :entry end @root = Root.parse({item: {id: 2000}}).first puts "root: #{@root.inspect}" puts "resource: #{@root.resource}"
Version data entries
17 entries across 17 versions & 1 rubygems