Sha256: 9ecc33f9e3894184776eac899a4176256ec0f7bc97ece8a6f49416862a487c9e

Contents?: true

Size: 252 Bytes

Versions: 2

Compression:

Stored size: 252 Bytes

Contents

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

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

root = Customer.parse({"hidden" => {"login" => 2000}}).first

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
transcriber-0.0.3 examples/properties/with_field_path.rb
transcriber-0.0.2 examples/properties/with_field_path.rb