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
Overview
Options for rate quote requests.
Instance Attribute Summary collapse
-
#accessorial_service_codes ⇒ Array<String>
readonly
The accessorial service codes.
-
#packages_serializer_class ⇒ Class
readonly
deprecated
Deprecated.
Use #structures_serializer_class instead.
-
#pickup_date ⇒ Time
readonly
The pickup date.
-
#service_code ⇒ String
readonly
The service code to use when getting rates.
-
#structures_serializer_class ⇒ Class
readonly
The class to use for serializing structures.
Instance Method Summary collapse
-
#initialize(service_code: nil, pickup_date: nil, accessorial_service_codes: [], structures_serializer_class: SerializeStructures, 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: [], structures_serializer_class: SerializeStructures, packages_serializer_class: SerializePackages, **kwargs) ⇒ QuoteOptions
Returns a new instance of QuoteOptions.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/quote_options.rb', line 34 def initialize( service_code: nil, pickup_date: nil, accessorial_service_codes: [], structures_serializer_class: SerializeStructures, packages_serializer_class: SerializePackages, **kwargs ) @service_code = service_code @pickup_date = pickup_date @accessorial_service_codes = accessorial_service_codes @structures_serializer_class = structures_serializer_class @packages_serializer_class = packages_serializer_class super(**kwargs) end |
Instance Attribute Details
#accessorial_service_codes ⇒ Array<String> (readonly)
Returns the accessorial service codes.
15 16 17 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/quote_options.rb', line 15 def accessorial_service_codes @accessorial_service_codes end |
#packages_serializer_class ⇒ Class (readonly)
Deprecated.
Use #structures_serializer_class instead.
Returns the class to use for serializing packages.
22 23 24 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/quote_options.rb', line 22 def packages_serializer_class @packages_serializer_class end |
#pickup_date ⇒ Time (readonly)
Returns the pickup date.
12 13 14 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/quote_options.rb', line 12 def pickup_date @pickup_date end |
#service_code ⇒ String (readonly)
Returns the service code to use when getting rates.
9 10 11 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/quote_options.rb', line 9 def service_code @service_code end |
#structures_serializer_class ⇒ Class (readonly)
Returns the class to use for serializing structures.
18 19 20 |
# File 'lib/friendly_shipping/services/ship_engine_ltl/quote_options.rb', line 18 def structures_serializer_class @structures_serializer_class end |