Class: Google4R::Checkout::GiftCertificateResult
- Inherits:
-
CodeResult
- Object
- CodeResult
- Google4R::Checkout::GiftCertificateResult
- Defined in:
- lib/google4r/checkout/merchant_calculation.rb
Overview
This class represents a gift-certificate-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 = '') ⇒ GiftCertificateResult
constructor
A new instance of GiftCertificateResult.
Constructor Details
#initialize(valid = false, code = '', calculated_amount = nil, message = '') ⇒ GiftCertificateResult
Returns a new instance of GiftCertificateResult.
315 316 317 318 319 320 |
# File 'lib/google4r/checkout/merchant_calculation.rb', line 315 def initialize(valid=false, code='', calculated_amount=nil, ='') @valid = valid @code = code @calculated_amount = calculated_amount @message = end |