Class: Google4R::Checkout::CouponResult
- Inherits:
-
CodeResult
- Object
- CodeResult
- Google4R::Checkout::CouponResult
- Defined in:
- lib/google4r/checkout/merchant_calculation.rb
Overview
This class represents a coupon-result in the merchant-calculation-results XML
Instance Attribute Summary
Attributes inherited from CodeResult
#calculated_amount, #code, #message, #valid
Instance Method Summary collapse
-
#initialize(valid = false, code = '', calculated_amount = nil, message = '') ⇒ CouponResult
constructor
A new instance of CouponResult.
Constructor Details
#initialize(valid = false, code = '', calculated_amount = nil, message = '') ⇒ CouponResult
Returns a new instance of CouponResult.
305 306 307 308 309 310 |
# File 'lib/google4r/checkout/merchant_calculation.rb', line 305 def initialize(valid=false, code='', calculated_amount=nil, ='') @valid = valid @code = code @calculated_amount = calculated_amount = end |