Class: ShipEngine::Domain::Labels::CreateFromRate::Response::Package
- Inherits:
-
Object
- Object
- ShipEngine::Domain::Labels::CreateFromRate::Response::Package
- Defined in:
- lib/shipengine/domain/labels/create_from_rate.rb
Defined Under Namespace
Classes: LabelMessages
Instance Attribute Summary collapse
-
#dimensions ⇒ Object
readonly
Returns the value of attribute dimensions.
-
#external_package_id ⇒ Object
readonly
Returns the value of attribute external_package_id.
-
#insured_value ⇒ Object
readonly
Returns the value of attribute insured_value.
-
#label_messages ⇒ Object
readonly
Returns the value of attribute label_messages.
-
#package_code ⇒ Object
readonly
Returns the value of attribute package_code.
-
#tracking_number ⇒ Object
readonly
Returns the value of attribute tracking_number.
-
#weight ⇒ Object
readonly
Returns the value of attribute weight.
Instance Method Summary collapse
-
#initialize(package_code:, weight:, dimensions:, insured_value:, tracking_number:, label_messages:, external_package_id:) ⇒ Package
constructor
rubocop:todo Metrics/ParameterLists.
Constructor Details
#initialize(package_code:, weight:, dimensions:, insured_value:, tracking_number:, label_messages:, external_package_id:) ⇒ Package
rubocop:todo Metrics/ParameterLists
85 86 87 88 89 90 91 92 93 |
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 85 def initialize(package_code:, weight:, dimensions:, insured_value:, tracking_number:, label_messages:, external_package_id:) # rubocop:todo Metrics/ParameterLists @package_code = package_code @weight = weight @dimensions = dimensions @insured_value = insured_value @tracking_number = tracking_number @label_messages = @external_package_id = external_package_id end |
Instance Attribute Details
#dimensions ⇒ Object (readonly)
Returns the value of attribute dimensions.
83 84 85 |
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 83 def dimensions @dimensions end |
#external_package_id ⇒ Object (readonly)
Returns the value of attribute external_package_id.
83 84 85 |
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 83 def external_package_id @external_package_id end |
#insured_value ⇒ Object (readonly)
Returns the value of attribute insured_value.
83 84 85 |
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 83 def insured_value @insured_value end |
#label_messages ⇒ Object (readonly)
Returns the value of attribute label_messages.
83 84 85 |
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 83 def @label_messages end |
#package_code ⇒ Object (readonly)
Returns the value of attribute package_code.
83 84 85 |
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 83 def package_code @package_code end |
#tracking_number ⇒ Object (readonly)
Returns the value of attribute tracking_number.
83 84 85 |
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 83 def tracking_number @tracking_number end |
#weight ⇒ Object (readonly)
Returns the value of attribute weight.
83 84 85 |
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 83 def weight @weight end |