Sha256: 22aad097b695510b4350daffeaa080da10ecf915eef1d1ea82e2dafa87fa7354
Contents?: true
Size: 524 Bytes
Versions: 2
Compression:
Stored size: 524 Bytes
Contents
$:.push 'lib'; require 'transcriber' class Customer < Transcriber::Resource convert_input_keys proc {|keys| keys} id properties :login, :name, :postal_code, :email, :secondary_email summarizes :id, :login end input = { id: 138911938, login: 'jackiechan2010', name: 'jackie chan', postal_code: '05492-092', email: 'jachan@gmail.com', secondary_email: 'jackiepeligroso@yahoo.com' } @root = Customer.transcribe(input) puts "resources: #{@root.inspect}"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
transcriber-0.0.11 | examples/summarization/simple.rb |
transcriber-0.0.10 | examples/summarization/simple.rb |