Sha256: ecf6b5710c7a899c02586eb560123f8e3aeeca65f501ebc9f319b0bbf5f5fcfc
Contents?: true
Size: 573 Bytes
Versions: 6
Compression:
Stored size: 573 Bytes
Contents
$:.push 'lib'; require 'transcriber' module AsDefined def self.call(keys) keys end end class Customer < Transcriber::Resource convert_input_keys AsDefined 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
6 entries across 6 versions & 1 rubygems