Sha256: 9518d62a08a6d9b14cef5a8875ff3ca8adfb3c8529af48d600e1c829056aa7a0

Contents?: true

Size: 249 Bytes

Versions: 17

Compression:

Stored size: 249 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

17 entries across 17 versions & 1 rubygems

Version Path
transcriber-0.0.26 examples/properties/array_serialization.rb
transcriber-0.0.25 examples/properties/array_serialization.rb
transcriber-0.0.24 examples/properties/array_serialization.rb
transcriber-0.0.23 examples/properties/array_serialization.rb
transcriber-0.0.22 examples/properties/array_serialization.rb
transcriber-0.0.21 examples/properties/array_serialization.rb
transcriber-0.0.20 examples/properties/array_serialization.rb
transcriber-0.0.19 examples/properties/array_serialization.rb
transcriber-0.0.18 examples/properties/array_serialization.rb
transcriber-0.0.17 examples/properties/array_serialization.rb
transcriber-0.0.16 examples/properties/array_serialization.rb
transcriber-0.0.15 examples/properties/array_serialization.rb
transcriber-0.0.14 examples/properties/array_serialization.rb
transcriber-0.0.13 examples/properties/array_serialization.rb
transcriber-0.0.12 examples/properties/array_serialization.rb
transcriber-0.0.11 examples/properties/array_serialization.rb
transcriber-0.0.10 examples/properties/array_serialization.rb