Class: ActiveMerchant::Shipping::StampsRateEstimate

Inherits:
RateEstimate show all
Defined in:
lib/active_shipping/shipping/carriers/stamps.rb

Instance Attribute Summary collapse

Attributes inherited from RateEstimate

#carrier, #currency, #delivery_date, #delivery_range, #destination, #insurance_price, #negotiated_rate, #origin, #package_rates, #service_code, #service_name, #shipping_date

Instance Method Summary collapse

Methods inherited from RateEstimate

#add, #package_count, #packages, #total_price

Constructor Details

#initialize(origin, destination, carrier, service_name, options = {}) ⇒ StampsRateEstimate


832
833
834
835
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 832

def initialize(origin, destination, carrier, service_name, options = {})
  super
  @add_ons = options[:add_ons]
end

Instance Attribute Details

#add_onsObject (readonly)

Returns the value of attribute add_ons


830
831
832
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 830

def add_ons
  @add_ons
end

Instance Method Details

#available_add_onsObject


837
838
839
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 837

def available_add_ons
  add_ons.keys
end