Sha256: 4be1cd72e834d0574cc24cec28c695a4cf0ae8ee6f811e88a1864e759ed98acb

Contents?: true

Size: 258 Bytes

Versions: 2

Compression:

Stored size: 258 Bytes

Contents

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

class Customer < Transcriber::Resource
  property :login
  has_one :service
end

@root = Customer.new(login: 'jackiechan2010')

puts "root.to_input: #{@root.to_input(relations: false)}"
puts "root:     #{@root.inspect}"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
transcriber-0.0.15 examples/to_input/without_relations.rb
transcriber-0.0.14 examples/to_input/without_relations.rb