Sha256: c1d1f99d0c26838e95c81b48bce68e533bd234b64c7ab51a4bbefdf2c80c154f

Contents?: true

Size: 600 Bytes

Versions: 28

Compression:

Stored size: 600 Bytes

Contents

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

class Customer < RestModel
  property :login, field: 'hidden.login'
  embeds_many :phones
end

class Phone < RestModel
  properties :number, :extension
end

@root = Customer.new(login: 'jackiechan2010',
                     phones: [
                       {
                         number: "123123123",
                         extension: "111"
                       },
                       {
                         number: "098098098",
                         extension: "999"
                       }
                     ])

inspect_rest_model(@root)

Version data entries

28 entries across 28 versions & 1 rubygems

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