class FlexCommerce::PaypalExpress::CartShippingMethod
@class CartShippingMethod
Used to decorate shipping methods based on Promotions
Constants
- ZERO
Attributes
free[RW]
Public Class Methods
new(shipping_method, free)
click to toggle source
Calls superclass method
# File lib/paypal_express/cart_shipping_method.rb, line 12 def initialize(shipping_method, free) super(shipping_method) self.free = free end
Public Instance Methods
is_free?()
click to toggle source
# File lib/paypal_express/cart_shipping_method.rb, line 17 def is_free? free end
tax()
click to toggle source
Calls superclass method
# File lib/paypal_express/cart_shipping_method.rb, line 26 def tax return ZERO if is_free? super end
total()
click to toggle source
Calls superclass method
# File lib/paypal_express/cart_shipping_method.rb, line 21 def total return ZERO if is_free? super end