Sha256: d2760eec13e5b93b4321c0d2e3603ebef5c67988a1b5dfbcfc419b7159abbe44

Contents?: true

Size: 260 Bytes

Versions: 4

Compression:

Stored size: 260 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

4 entries across 4 versions & 1 rubygems

Version Path
transcriber-0.0.26 examples/properties/with_field.rb
transcriber-0.0.25 examples/properties/with_field.rb
transcriber-0.0.24 examples/properties/with_field.rb
transcriber-0.0.23 examples/properties/with_field.rb