Class: FriendlyShipping::Services::ShipEngine::LabelCustomsOptions
- Inherits:
-
Object
- Object
- FriendlyShipping::Services::ShipEngine::LabelCustomsOptions
- Defined in:
- lib/friendly_shipping/services/ship_engine/label_customs_options.rb
Overview
Options for obtaining international shipment labels with customs.
Instance Attribute Summary collapse
-
#contents ⇒ String
readonly
The contents of the shipment.
-
#non_delivery ⇒ String
readonly
Indicates what should be done if the shipment cannot be delivered.
Instance Method Summary collapse
-
#initialize(contents: "merchandise", non_delivery: "return_to_sender") ⇒ LabelCustomsOptions
constructor
A new instance of LabelCustomsOptions.
Constructor Details
#initialize(contents: "merchandise", non_delivery: "return_to_sender") ⇒ LabelCustomsOptions
Returns a new instance of LabelCustomsOptions.
18 19 20 21 22 23 24 |
# File 'lib/friendly_shipping/services/ship_engine/label_customs_options.rb', line 18 def initialize( contents: "merchandise", non_delivery: "return_to_sender" ) @contents = contents @non_delivery = non_delivery end |
Instance Attribute Details
#contents ⇒ String (readonly)
Returns the contents of the shipment.
9 10 11 |
# File 'lib/friendly_shipping/services/ship_engine/label_customs_options.rb', line 9 def contents @contents end |
#non_delivery ⇒ String (readonly)
Returns indicates what should be done if the shipment cannot be delivered.
12 13 14 |
# File 'lib/friendly_shipping/services/ship_engine/label_customs_options.rb', line 12 def non_delivery @non_delivery end |