Class: ActiveMerchant::Shipping::StampsRateEstimate
- Inherits:
-
RateEstimate
- Object
- RateEstimate
- ActiveMerchant::Shipping::StampsRateEstimate
- Defined in:
- lib/active_shipping/shipping/carriers/stamps.rb
Instance Attribute Summary collapse
-
#add_ons ⇒ Object
readonly
Returns the value of attribute add_ons.
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
- #available_add_ons ⇒ Object
-
#initialize(origin, destination, carrier, service_name, options = {}) ⇒ StampsRateEstimate
constructor
A new instance of StampsRateEstimate.
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, ={}) super @add_ons = [:add_ons] end |
Instance Attribute Details
#add_ons ⇒ Object (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_ons ⇒ Object
848 849 850 |
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 848 def available_add_ons add_ons.keys end |