Class: FriendlyShipping::Services::RL::PackageOptions
- Inherits:
-
PackageOptions
- Object
- PackageOptions
- FriendlyShipping::Services::RL::PackageOptions
- Defined in:
- lib/friendly_shipping/services/rl/package_options.rb
Overview
Serializes packages for R+L API requests.
Instance Attribute Summary collapse
- #freight_class ⇒ String readonly
- #nmfc_primary_code ⇒ String readonly
- #nmfc_sub_code ⇒ String readonly
Attributes inherited from PackageOptions
Instance Method Summary collapse
-
#initialize(freight_class: nil, nmfc_primary_code: nil, nmfc_sub_code: nil, **kwargs) ⇒ PackageOptions
constructor
A new instance of PackageOptions.
Methods inherited from PackageOptions
Constructor Details
#initialize(freight_class: nil, nmfc_primary_code: nil, nmfc_sub_code: nil, **kwargs) ⇒ PackageOptions
Returns a new instance of PackageOptions.
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/friendly_shipping/services/rl/package_options.rb', line 24 def initialize( freight_class: nil, nmfc_primary_code: nil, nmfc_sub_code: nil, **kwargs ) @freight_class = freight_class @nmfc_primary_code = nmfc_primary_code @nmfc_sub_code = nmfc_sub_code super(**kwargs.reverse_merge(item_options_class: ItemOptions)) end |
Instance Attribute Details
#freight_class ⇒ String (readonly)
9 10 11 |
# File 'lib/friendly_shipping/services/rl/package_options.rb', line 9 def freight_class @freight_class end |
#nmfc_primary_code ⇒ String (readonly)
12 13 14 |
# File 'lib/friendly_shipping/services/rl/package_options.rb', line 12 def nmfc_primary_code @nmfc_primary_code end |
#nmfc_sub_code ⇒ String (readonly)
15 16 17 |
# File 'lib/friendly_shipping/services/rl/package_options.rb', line 15 def nmfc_sub_code @nmfc_sub_code end |