Sha256: 81d051e19175b3f2eed6dd63b4b4c0e25b128c156e2d6f0203888ee06423accd

Contents?: true

Size: 310 Bytes

Versions: 30

Compression:

Stored size: 310 Bytes

Contents

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

class Customer < RestModel
  property :login, field: 'hidden.login'
  embeds_one :address
end

class Address < RestModel
  properties :street, :number
end

@root = Customer.new(login: 'jackiechan2010', address: {street: "Aurora St", number: 666})
inspect_rest_model(@root)

Version data entries

30 entries across 30 versions & 1 rubygems

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