Class: ShipEngine::Domain::Labels::CreateFromRate::Response::Package

Inherits:
Object
  • Object
show all
Defined in:
lib/shipengine/domain/labels/create_from_rate.rb

Defined Under Namespace

Classes: LabelMessages

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = label_messages
  @external_package_id = external_package_id
end

Instance Attribute Details

#dimensionsObject (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_idObject (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_valueObject (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_messagesObject (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
  @label_messages
end

#package_codeObject (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_numberObject (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

#weightObject (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