Sha256: 5fb4bec21fc91dd3f14204c63afc01f516540c996ef9fa6f9023f6eb2023f3c2

Contents?: true

Size: 267 Bytes

Versions: 23

Compression:

Stored size: 267 Bytes

Contents

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

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

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

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
transcriber-0.0.26 examples/properties/with_field_path.rb
transcriber-0.0.25 examples/properties/with_field_path.rb
transcriber-0.0.24 examples/properties/with_field_path.rb
transcriber-0.0.23 examples/properties/with_field_path.rb
transcriber-0.0.22 examples/properties/with_field_path.rb
transcriber-0.0.21 examples/properties/with_field_path.rb
transcriber-0.0.20 examples/properties/with_field_path.rb
transcriber-0.0.19 examples/properties/with_field_path.rb
transcriber-0.0.18 examples/properties/with_field_path.rb
transcriber-0.0.17 examples/properties/with_field_path.rb
transcriber-0.0.16 examples/properties/with_field_path.rb
transcriber-0.0.15 examples/properties/with_field_path.rb
transcriber-0.0.14 examples/properties/with_field_path.rb
transcriber-0.0.13 examples/properties/with_field_path.rb
transcriber-0.0.12 examples/properties/with_field_path.rb
transcriber-0.0.11 examples/properties/with_field_path.rb
transcriber-0.0.10 examples/properties/with_field_path.rb
transcriber-0.0.9 examples/properties/with_field_path.rb
transcriber-0.0.8 examples/properties/with_field_path.rb
transcriber-0.0.7 examples/properties/with_field_path.rb