Sha256: 456599fd5a120b5dd70b046f4ddd5bade196564a6660ca19eeae2254ac1c1225

Contents?: true

Size: 237 Bytes

Versions: 25

Compression:

Stored size: 237 Bytes

Contents

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

class Item < RestModel
  property :id, type: Integer
end

class Root < RestModel
  embeds_many :items
end

@root = Root.from_source!(items: [{id: 2000}, {id: 2001}]).first

inspect_rest_model(@root)

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
rest_model-0.2.1 examples/embeds_many/simple.rb
rest_model-0.2.0 examples/embeds_many/simple.rb
rest_model-0.1.24 examples/embeds_many/simple.rb
rest_model-0.1.23 examples/embeds_many/simple.rb
rest_model-0.1.22 examples/embeds_many/simple.rb
rest_model-0.1.21 examples/embeds_many/simple.rb
rest_model-0.1.20 examples/embeds_many/simple.rb
rest_model-0.1.19 examples/embeds_many/simple.rb
rest_model-0.1.18 examples/embeds_many/simple.rb
rest_model-0.1.17 examples/embeds_many/simple.rb
rest_model-0.1.16 examples/embeds_many/simple.rb
rest_model-0.1.15 examples/embeds_many/simple.rb
rest_model-0.1.14 examples/embeds_many/simple.rb
rest_model-0.1.13 examples/embeds_many/simple.rb
rest_model-0.1.12 examples/embeds_many/simple.rb
rest_model-0.1.11 examples/embeds_many/simple.rb
rest_model-0.1.10 examples/embeds_many/simple.rb
rest_model-0.1.9 examples/embeds_many/simple.rb
rest_model-0.1.8 examples/embeds_many/simple.rb
rest_model-0.1.7 examples/embeds_many/simple.rb