Sha256: 05bdf4ea11b371e18e03e49fe4fd080efe5ae729e6158fcbb4807ea86567c5dd

Contents?: true

Size: 251 Bytes

Versions: 28

Compression:

Stored size: 251 Bytes

Contents

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

class Root < RestModel
  embeds_one :item, start_key: 'ugly_nesting_key'
end

class Item < RestModel
  property :id
end

@root = Root.from_source!('ugly_nesting_key' => {id: 2000}).first
inspect_rest_model(@root)

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
rest_model-0.1.9 examples/embeds_one/with_start_key.rb
rest_model-0.1.8 examples/embeds_one/with_start_key.rb
rest_model-0.1.7 examples/embeds_one/with_start_key.rb
rest_model-0.1.6 examples/embeds_one/with_start_key.rb
rest_model-0.1.5 examples/embeds_one/with_start_key.rb
rest_model-0.1.4 examples/embeds_one/with_start_key.rb
rest_model-0.1.3 examples/embeds_one/with_start_key.rb
rest_model-0.1.2 examples/embeds_one/with_start_key.rb