Sha256: b6e01abc28354f0b53564cf82ef6333586c00361f6c1ac97b48283137cffe8a0
Contents?: true
Size: 420 Bytes
Versions: 16
Compression:
Stored size: 420 Bytes
Contents
$:.push 'lib'; require 'transcriber' class Customer < Transcriber::Resource property :login, field: 'hidden.login' embeds_one :address end class Address < Transcriber::Resource properties :street, :number end @root = Customer.new(login: 'jackiechan2010', address: {street: "Aurora St", number: 666}) puts "root.to_input: #{@root.to_input}" puts "root: #{@root.inspect}" puts "resource: #{@root.resource}"
Version data entries
16 entries across 16 versions & 1 rubygems