Class: Google4R::Checkout::CodeResult
- Inherits:
-
Object
- Object
- Google4R::Checkout::CodeResult
- Defined in:
- lib/google4r/checkout/merchant_calculation.rb
Overview
Base class for merchant code (coupon and gift certificate)
Direct Known Subclasses
Instance Attribute Summary collapse
-
#calculated_amount ⇒ Object
The calculated amount (Money).
-
#code ⇒ Object
The code (string).
-
#message ⇒ Object
The message (string).
-
#valid ⇒ Object
Is this valid (boolean).
Instance Method Summary collapse
-
#initialize ⇒ CodeResult
constructor
A new instance of CodeResult.
Constructor Details
#initialize ⇒ CodeResult
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_amount ⇒ Object
The calculated amount (Money)
291 292 293 |
# File 'lib/google4r/checkout/merchant_calculation.rb', line 291 def calculated_amount @calculated_amount end |
#code ⇒ Object
The code (string)
288 289 290 |
# File 'lib/google4r/checkout/merchant_calculation.rb', line 288 def code @code end |
#message ⇒ Object
The message (string)
294 295 296 |
# File 'lib/google4r/checkout/merchant_calculation.rb', line 294 def end |
#valid ⇒ Object
Is this valid (boolean)
285 286 287 |
# File 'lib/google4r/checkout/merchant_calculation.rb', line 285 def valid @valid end |