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.



298
299
300
# File 'lib/google4r/checkout/merchant_calculation.rb', line 298

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

Instance Attribute Details

#calculated_amountObject

The calculated amount (Money)



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

def calculated_amount
  @calculated_amount
end

#codeObject

The code (string)



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

def code
  @code
end

#messageObject

The message (string)



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

def message
  @message
end

#validObject

Is this valid (boolean)



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

def valid
  @valid
end