Class: ActiveShipping::DeliveryDateEstimate
- Inherits:
-
Object
- Object
- ActiveShipping::DeliveryDateEstimate
- Defined in:
- lib/active_shipping/delivery_date_estimate.rb
Instance Attribute Summary collapse
-
#business_transit_days ⇒ Object
readonly
Returns the value of attribute business_transit_days.
-
#carrier ⇒ Object
readonly
Returns the value of attribute carrier.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#destination ⇒ Object
readonly
Returns the value of attribute destination.
-
#guaranteed ⇒ Object
readonly
Returns the value of attribute guaranteed.
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
-
#service_code ⇒ Object
readonly
Returns the value of attribute service_code.
-
#service_name ⇒ Object
readonly
Returns the value of attribute service_name.
Instance Method Summary collapse
-
#initialize(origin, destination, carrier, service_name, options = {}) ⇒ DeliveryDateEstimate
constructor
A new instance of DeliveryDateEstimate.
Constructor Details
#initialize(origin, destination, carrier, service_name, options = {}) ⇒ DeliveryDateEstimate
Returns a new instance of DeliveryDateEstimate.
12 13 14 15 16 17 18 |
# File 'lib/active_shipping/delivery_date_estimate.rb', line 12 def initialize(origin, destination, carrier, service_name, ={}) @origin, @destination, @carrier, @service_name = origin, destination, carrier, service_name @service_code = [:service_code] @date = [:date] @guaranteed = [:guaranteed] @business_transit_days = [:business_transit_days] end |
Instance Attribute Details
#business_transit_days ⇒ Object (readonly)
Returns the value of attribute business_transit_days.
10 11 12 |
# File 'lib/active_shipping/delivery_date_estimate.rb', line 10 def business_transit_days @business_transit_days end |
#carrier ⇒ Object (readonly)
Returns the value of attribute carrier.
5 6 7 |
# File 'lib/active_shipping/delivery_date_estimate.rb', line 5 def carrier @carrier end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
8 9 10 |
# File 'lib/active_shipping/delivery_date_estimate.rb', line 8 def date @date end |
#destination ⇒ Object (readonly)
Returns the value of attribute destination.
4 5 6 |
# File 'lib/active_shipping/delivery_date_estimate.rb', line 4 def destination @destination end |
#guaranteed ⇒ Object (readonly)
Returns the value of attribute guaranteed.
9 10 11 |
# File 'lib/active_shipping/delivery_date_estimate.rb', line 9 def guaranteed @guaranteed end |
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
3 4 5 |
# File 'lib/active_shipping/delivery_date_estimate.rb', line 3 def origin @origin end |
#service_code ⇒ Object (readonly)
Returns the value of attribute service_code.
7 8 9 |
# File 'lib/active_shipping/delivery_date_estimate.rb', line 7 def service_code @service_code end |
#service_name ⇒ Object (readonly)
Returns the value of attribute service_name.
6 7 8 |
# File 'lib/active_shipping/delivery_date_estimate.rb', line 6 def service_name @service_name end |