Class: Google4R::Checkout::DeliveryMethod
- Inherits:
-
Object
- Object
- Google4R::Checkout::DeliveryMethod
- Defined in:
- lib/google4r/checkout/shared.rb
Overview
Abstract class for delivery methods
Direct Known Subclasses
CarrierCalculatedShipping::CarrierCalculatedShippingOption, PickupShipping, ShippingMethod
Instance Attribute Summary collapse
-
#name ⇒ Object
The name of the shipping method (string, required).
-
#price ⇒ Object
The price of the shipping method (Money instance, required).
Instance Method Summary collapse
-
#initialize ⇒ DeliveryMethod
constructor
Mark this class as abstract by throwing a RuntimeError on initialization.
Constructor Details
#initialize ⇒ DeliveryMethod
Mark this class as abstract by throwing a RuntimeError on initialization.
763 764 765 |
# File 'lib/google4r/checkout/shared.rb', line 763 def initialize raise "Do not use the abstract class Google::Checkout::ShippingMethod!" end |
Instance Attribute Details
#name ⇒ Object
The name of the shipping method (string, required).
747 748 749 |
# File 'lib/google4r/checkout/shared.rb', line 747 def name @name end |
#price ⇒ Object
The price of the shipping method (Money instance, required).
750 751 752 |
# File 'lib/google4r/checkout/shared.rb', line 750 def price @price end |