Sha256: 41861b801d1e0244f98228f27eb0a43a12f7f43a7423c801bb2a16de8af2f090
Contents?: true
Size: 370 Bytes
Versions: 18
Compression:
Stored size: 370 Bytes
Contents
$:.push 'lib'; require 'transcriber' class Customer < Transcriber::Resource property :name embeds_one :address end class Address < Transcriber::Resource properties :street, :number end @root = Customer.new({ name: "Jackie Chan", address: { street: "Aurora St", number: 666 }}) puts "root: #{@root.inspect}" puts "resource: #{@root.resource}"
Version data entries
18 entries across 18 versions & 1 rubygems