Sha256: c49c9bac1d937f63170cd92a2ab87f1edd8698131e707aa972362db6c21a8500

Contents?: true

Size: 225 Bytes

Versions: 28

Compression:

Stored size: 225 Bytes

Contents

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

class Entry < RestModel
  property :id
end

class Root < RestModel
  embeds_one :item, class_name: :entry
end

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

Version data entries

28 entries across 28 versions & 1 rubygems

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