Sha256: 45d04d0cff8eeba5465a28ab2e46b9c2a21de167c702beeb388959652ab9a0a9

Contents?: true

Size: 233 Bytes

Versions: 30

Compression:

Stored size: 233 Bytes

Contents

$:.push 'examples'; require 'helper'

class Customer < RestModel
  property :name
  embeds_many :phones, class_name: :array
end

@root = Customer.new({name: "Jackie Chan", phones: ["1391938", "893271984"]})
inspect_rest_model(@root)

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
rest_model-0.3.1 examples/initialize/embeds_many_array.rb
rest_model-0.3.0 examples/initialize/embeds_many_array.rb
rest_model-0.2.3 examples/initialize/embeds_many_array.rb
rest_model-0.2.1 examples/initialize/embeds_many_array.rb
rest_model-0.2.0 examples/initialize/embeds_many_array.rb
rest_model-0.1.24 examples/initialize/embeds_many_array.rb
rest_model-0.1.23 examples/initialize/embeds_many_array.rb
rest_model-0.1.22 examples/initialize/embeds_many_array.rb
rest_model-0.1.21 examples/initialize/embeds_many_array.rb
rest_model-0.1.20 examples/initialize/embeds_many_array.rb
rest_model-0.1.19 examples/initialize/embeds_many_array.rb
rest_model-0.1.18 examples/initialize/embeds_many_array.rb
rest_model-0.1.17 examples/initialize/embeds_many_array.rb
rest_model-0.1.16 examples/initialize/embeds_many_array.rb
rest_model-0.1.15 examples/initialize/embeds_many_array.rb
rest_model-0.1.14 examples/initialize/embeds_many_array.rb
rest_model-0.1.13 examples/initialize/embeds_many_array.rb
rest_model-0.1.12 examples/initialize/embeds_many_array.rb
rest_model-0.1.11 examples/initialize/embeds_many_array.rb
rest_model-0.1.10 examples/initialize/embeds_many_array.rb