Class: Google4R::Checkout::CodeResult

Inherits:
Object
  • Object
show all
Defined in:
lib/google4r/checkout/merchant_calculation.rb

Overview

Base class for merchant code (coupon and gift certificate)

Direct Known Subclasses

CouponResult, GiftCertificateResult

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCodeResult

Returns a new instance of CodeResult.



296
297
298
# File 'lib/google4r/checkout/merchant_calculation.rb', line 296

def initialize()
  raise "Do not use the abstract class Google::Checkout::CodeReslt"
end

Instance Attribute Details

#calculated_amountObject

The calculated amount (Money)



291
292
293
# File 'lib/google4r/checkout/merchant_calculation.rb', line 291

def calculated_amount
  @calculated_amount
end

#codeObject

The code (string)



288
289
290
# File 'lib/google4r/checkout/merchant_calculation.rb', line 288

def code
  @code
end

#messageObject

The message (string)



294
295
296
# File 'lib/google4r/checkout/merchant_calculation.rb', line 294

def message
  @message
end

#validObject

Is this valid (boolean)



285
286
287
# File 'lib/google4r/checkout/merchant_calculation.rb', line 285

def valid
  @valid
end