Sha256: 27017244d88174903d2366f900cb0b86e698bfbe3f9a99d1b1f6bb3cfb20ce94
Contents?: true
Size: 384 Bytes
Versions: 23
Compression:
Stored size: 384 Bytes
Contents
$:.push 'lib'; require 'transcriber' module Upcasing def self.call(keys) keys.map {|key| key.to_s.upcase} end end Transcriber.configure do |c| c.convert_input_keys = Upcasing end class Customer < Transcriber::Resource property :login end @root = Customer.parse({"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.6 | examples/properties/with_key_converter.rb |
transcriber-0.0.5 | examples/properties/with_key_converter.rb |
transcriber-0.0.4 | examples/properties/with_key_converter.rb |