Class: ReactiveShipping::StampsRateEstimate

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

Instance Attribute Summary collapse

Attributes inherited from RateEstimate

#carrier, #charge_items, #compare_price, #currency, #delivery_category, #delivery_date, #delivery_range, #description, #destination, #estimate_reference, #expires_at, #insurance_price, #messages, #negotiated_rate, #origin, #package_rates, #phone_required, #pickup_time, #service_code, #service_name, #shipment_options, #shipping_date

Instance Method Summary collapse

Methods inherited from RateEstimate

#add, #package_count, #packages, #total_price, #total_price=

Constructor Details

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

Returns a new instance of StampsRateEstimate.



831
832
833
834
# File 'lib/reactive_shipping/carriers/stamps.rb', line 831

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.



829
830
831
# File 'lib/reactive_shipping/carriers/stamps.rb', line 829

def add_ons
  @add_ons
end

Instance Method Details

#available_add_onsObject



836
837
838
# File 'lib/reactive_shipping/carriers/stamps.rb', line 836

def available_add_ons
  add_ons.keys
end