Class: Smartpay::Requests::PromotionCodeUpdate
- Inherits:
-
Object
- Object
- Smartpay::Requests::PromotionCodeUpdate
- Defined in:
- lib/smartpay/requests/promotion_code_update.rb
Overview
PromotionCodeUpdate
Instance Attribute Summary collapse
-
#payload ⇒ Object
Returns the value of attribute payload.
Instance Method Summary collapse
- #as_hash ⇒ Object
-
#initialize(raw_payload) ⇒ PromotionCodeUpdate
constructor
A new instance of PromotionCodeUpdate.
Constructor Details
#initialize(raw_payload) ⇒ PromotionCodeUpdate
Returns a new instance of PromotionCodeUpdate.
9 10 11 |
# File 'lib/smartpay/requests/promotion_code_update.rb', line 9 def initialize(raw_payload) @payload = raw_payload.transform_keys(&:to_sym) end |
Instance Attribute Details
#payload ⇒ Object
Returns the value of attribute payload.
7 8 9 |
# File 'lib/smartpay/requests/promotion_code_update.rb', line 7 def payload @payload end |
Instance Method Details
#as_hash ⇒ Object
13 14 15 |
# File 'lib/smartpay/requests/promotion_code_update.rb', line 13 def as_hash normalize_payload end |