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.



752
753
754
# File 'lib/google4r/checkout/shared.rb', line 752

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).



736
737
738
# File 'lib/google4r/checkout/shared.rb', line 736

def name
  @name
end

#priceObject

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



739
740
741
# File 'lib/google4r/checkout/shared.rb', line 739

def price
  @price
end