examples/unified_message.rb in serdee-0.1.0 vs examples/unified_message.rb in serdee-0.2.0
- old
+ new
@@ -2,10 +2,11 @@
require_relative "./address"
require_relative "./response_code"
class UnifiedMessage
include Serdee::Attributes
- set_key_transform :camel_lower
+ serialize_key { |key| key.camelize(:lower) }
+ deserialize_key { |key| key.underscore }
PROCESSING_CODES = {
balance_inquiry: "315400",
redemption: "615400"
}.freeze