Class: FriendlyShipping::Services::ShipEngineLTL::QuoteOptions
- Inherits:
-
FriendlyShipping::ShipmentOptions
- Object
- FriendlyShipping::ShipmentOptions
- FriendlyShipping::Services::ShipEngineLTL::QuoteOptions
- Defined in:
- lib/friendly_shipping/services/ship_engine_ltl/quote_options.rb
Instance Attribute Summary collapse
-
#accessorial_service_codes ⇒ Object
readonly
Returns the value of attribute accessorial_service_codes.
-
#packages_serializer_class ⇒ Object
readonly
Returns the value of attribute packages_serializer_class.
-
#pickup_date ⇒ Object
readonly
Returns the value of attribute pickup_date.
-
#service_code ⇒ Object
readonly
Returns the value of attribute service_code.
Instance Method Summary collapse
-
#initialize(service_code: nil, pickup_date: nil, accessorial_service_codes: [], packages_serializer_class: SerializePackages, **kwargs) ⇒ QuoteOptions
constructor
A new instance of QuoteOptions.
Methods inherited from FriendlyShipping::ShipmentOptions
Constructor Details
#initialize(service_code: nil, pickup_date: nil, accessorial_service_codes: [], packages_serializer_class: SerializePackages, **kwargs) ⇒ QuoteOptions
Returns a new instance of QuoteOptions.
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/quote_options.rb', line 18 def initialize( service_code: nil, pickup_date: nil, accessorial_service_codes: [], packages_serializer_class: SerializePackages, **kwargs ) @service_code = service_code @pickup_date = pickup_date @accessorial_service_codes = accessorial_service_codes @packages_serializer_class = packages_serializer_class super(**kwargs.merge(package_options_class: PackageOptions)) end |
Instance Attribute Details
#accessorial_service_codes ⇒ Object (readonly)
Returns the value of attribute accessorial_service_codes.
9 10 11 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/quote_options.rb', line 9 def accessorial_service_codes @accessorial_service_codes end |
#packages_serializer_class ⇒ Object (readonly)
Returns the value of attribute packages_serializer_class.
9 10 11 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/quote_options.rb', line 9 def packages_serializer_class @packages_serializer_class end |
#pickup_date ⇒ Object (readonly)
Returns the value of attribute pickup_date.
9 10 11 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/quote_options.rb', line 9 def pickup_date @pickup_date end |
#service_code ⇒ Object (readonly)
Returns the value of attribute service_code.
9 10 11 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/quote_options.rb', line 9 def service_code @service_code end |