Class: Google4R::Checkout::DeliveryMethod

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

Overview

Abstract class for delivery methods

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDeliveryMethod

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

#nameObject

The name of the shipping method (string, required).



747
748
749
# File 'lib/google4r/checkout/shared.rb', line 747

def name
  @name
end

#priceObject

The price of the shipping method (Money instance, required).



750
751
752
# File 'lib/google4r/checkout/shared.rb', line 750

def price
  @price
end