Sha256: af94f33cf618734910ae96433c9d0e602f56310e567d17e236f128dcc081b95e
Contents?: true
Size: 590 Bytes
Versions: 13
Compression:
Stored size: 590 Bytes
Contents
$:.push 'lib'; require 'transcriber' class Customer < Transcriber::Resource properties :login, :name embeds_many :phones end class Phone < Transcriber::Resource properties :number, :extension, :description end @root = Customer.new({ login: 'jackiechan2010', name: "Jackie Chan", phones: [ { number: "897289472", extension: "3897", description: "abab" }, { number: "987198732", extension: "1897", description: "eheh" } ] }) puts "root.to_input: #{@root.to_input(phones: {without: :description})}" puts "root: #{@root.inspect}"
Version data entries
13 entries across 13 versions & 1 rubygems