Class: Google4R::Checkout::GiftCertificateResult

Inherits:
CodeResult
  • Object
show all
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

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, message='')
  @valid = valid
  @code = code
  @calculated_amount = calculated_amount
  @message = message
end