Sha256: 4dcfaff29b745be9247dbb2cd346da81c492301c847fa6e812acb47bce00e58b
Contents?: true
Size: 289 Bytes
Versions: 11
Compression:
Stored size: 289 Bytes
Contents
$:.push 'lib'; require 'transcriber' class Customer < Transcriber::Resource property :name embeds_many :phones, class_name: :array end @root = Customer.new({name: "Jackie Chan", phones: ["1391938", "893271984"]}) puts "root: #{@root.inspect}" puts "resource: #{@root.resource}"
Version data entries
11 entries across 11 versions & 1 rubygems