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.1.9 examples/to_source/embeds_one.rb
rest_model-0.1.8 examples/to_source/embeds_one.rb
rest_model-0.1.7 examples/to_source/embeds_one.rb
rest_model-0.1.6 examples/to_source/embeds_one.rb
rest_model-0.1.5 examples/to_source/embeds_one.rb
rest_model-0.1.4 examples/to_source/embeds_one.rb
rest_model-0.1.3 examples/to_source/embeds_one.rb
rest_model-0.1.2 examples/to_source/embeds_one.rb
rest_model-0.1.1 examples/to_input/embeds_one.rb
rest_model-0.1.0 examples/to_input/embeds_one.rb