Sha256: b6e01abc28354f0b53564cf82ef6333586c00361f6c1ac97b48283137cffe8a0

Contents?: true

Size: 420 Bytes

Versions: 16

Compression:

Stored size: 420 Bytes

Contents

$:.push 'lib'; require 'transcriber'

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

class Address < Transcriber::Resource
  properties :street, :number
end

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

puts "root.to_input: #{@root.to_input}"


puts "root:     #{@root.inspect}"
puts "resource: #{@root.resource}"

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
transcriber-0.0.26 examples/to_input/embeds_one.rb
transcriber-0.0.25 examples/to_input/embeds_one.rb
transcriber-0.0.24 examples/to_input/embeds_one.rb
transcriber-0.0.23 examples/to_input/embeds_one.rb
transcriber-0.0.22 examples/to_input/embeds_one.rb
transcriber-0.0.21 examples/to_input/embeds_one.rb
transcriber-0.0.20 examples/to_input/embeds_one.rb
transcriber-0.0.19 examples/to_input/embeds_one.rb
transcriber-0.0.18 examples/to_input/embeds_one.rb
transcriber-0.0.17 examples/to_input/embeds_one.rb
transcriber-0.0.16 examples/to_input/embeds_one.rb
transcriber-0.0.15 examples/to_input/embeds_one.rb
transcriber-0.0.14 examples/to_input/embeds_one.rb
transcriber-0.0.13 examples/to_input/embeds_one.rb
transcriber-0.0.12 examples/to_input/embeds_one.rb
transcriber-0.0.11 examples/to_input/embeds_one.rb