Sha256: 21f532542fd8d915ef9f167044f52db96a4308eca86581c11310cdc9b7c2545e

Contents?: true

Size: 263 Bytes

Versions: 6

Compression:

Stored size: 263 Bytes

Contents

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

class Customer < Transcriber::Resource
  property :login, field: :customer_login
end

@root = Customer.parse({"customer_login" => 'jackiechan2010'}).first

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
transcriber-0.0.9 examples/properties/with_field.rb
transcriber-0.0.8 examples/properties/with_field.rb
transcriber-0.0.7 examples/properties/with_field.rb
transcriber-0.0.6 examples/properties/with_field.rb
transcriber-0.0.5 examples/properties/with_field.rb
transcriber-0.0.4 examples/properties/with_field.rb