Class: ActiveShipping::StampsRateEstimate
- Inherits:
-
RateEstimate
- Object
- RateEstimate
- ActiveShipping::StampsRateEstimate
- Defined in:
- lib/active_shipping/carriers/stamps.rb
Instance Attribute Summary collapse
-
#add_ons ⇒ Object
readonly
Returns the value of attribute add_ons.
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
- #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, #total_price=
Constructor Details
#initialize(origin, destination, carrier, service_name, options = {}) ⇒ StampsRateEstimate
Returns a new instance of StampsRateEstimate.
831 832 833 834 |
# File 'lib/active_shipping/carriers/stamps.rb', line 831 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.
829 830 831 |
# File 'lib/active_shipping/carriers/stamps.rb', line 829 def add_ons @add_ons end |
Instance Method Details
#available_add_ons ⇒ Object
836 837 838 |
# File 'lib/active_shipping/carriers/stamps.rb', line 836 def available_add_ons add_ons.keys end |