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.
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_amount ⇒ Object
The calculated amount (Money)
293 294 295 |
# File 'lib/google4r/checkout/merchant_calculation.rb', line 293 def calculated_amount @calculated_amount end |
#code ⇒ Object
The code (string)
290 291 292 |
# File 'lib/google4r/checkout/merchant_calculation.rb', line 290 def code @code end |
#message ⇒ Object
The message (string)
296 297 298 |
# File 'lib/google4r/checkout/merchant_calculation.rb', line 296 def end |
#valid ⇒ Object
Is this valid (boolean)
287 288 289 |
# File 'lib/google4r/checkout/merchant_calculation.rb', line 287 def valid @valid end |