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

Version Path
transcriber-0.0.26 examples/initialize/embeds_many_array.rb
transcriber-0.0.25 examples/initialize/embeds_many_array.rb
transcriber-0.0.24 examples/initialize/embeds_many_array.rb
transcriber-0.0.23 examples/initialize/embeds_many_array.rb
transcriber-0.0.22 examples/initialize/embeds_many_array.rb
transcriber-0.0.21 examples/initialize/embeds_many_array.rb
transcriber-0.0.20 examples/initialize/embeds_many_array.rb
transcriber-0.0.19 examples/initialize/embeds_many_array.rb
transcriber-0.0.18 examples/initialize/embeds_many_array.rb
transcriber-0.0.17 examples/initialize/embeds_many_array.rb
transcriber-0.0.16 examples/initialize/embeds_many_array.rb