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

Returns a new instance of StampsRateEstimate.



843
844
845
846
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 843

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.



841
842
843
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 841

def add_ons
  @add_ons
end

Instance Method Details

#available_add_onsObject



848
849
850
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 848

def available_add_ons
  add_ons.keys
end