Sha256: 5a293809cc508b31fea2154c1d969cbe1f72ec953955e41851e7f735aa282b42

Contents?: true

Size: 253 Bytes

Versions: 5

Compression:

Stored size: 253 Bytes

Contents

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

class Customer < Transcriber::Resource
  property :products, type: Enumerable
end

@root = Customer.parse({'products' => ['a', 'b', 'c']}).first

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
transcriber-0.0.9 examples/properties/array_serialization.rb
transcriber-0.0.8 examples/properties/array_serialization.rb
transcriber-0.0.7 examples/properties/array_serialization.rb
transcriber-0.0.6 examples/properties/array_serialization.rb
transcriber-0.0.5 examples/properties/array_serialization.rb