Sha256: 2ce4d7b473b3a3621ad6c3445b523c87bcbc3dd19196548a7440bfa84cffb7c5

Contents?: true

Size: 214 Bytes

Versions: 10

Compression:

Stored size: 214 Bytes

Contents

require 'json'

$:.push 'lib'; require 'transcriber'

class Root < Transcriber::Resource
  embeds_many :items, class_name: "Array"
end

@root = Root.new
@root.items = ["a", "b"]

puts "resource: #{@root.resource}"

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
transcriber-0.0.15 examples/embeds_many/with_array.rb
transcriber-0.0.14 examples/embeds_many/with_array.rb
transcriber-0.0.13 examples/embeds_many/with_array.rb
transcriber-0.0.12 examples/embeds_many/with_array.rb
transcriber-0.0.11 examples/embeds_many/with_array.rb
transcriber-0.0.10 examples/embeds_many/with_array.rb
transcriber-0.0.9 examples/embeds_many/with_array.rb
transcriber-0.0.8 examples/embeds_many/with_array.rb
transcriber-0.0.7 examples/embeds_many/with_array.rb
transcriber-0.0.6 examples/embeds_many/with_array.rb