Class: Shipping::PackingCalculator::Unit

Inherits:
Struct
  • Object
show all
Defined in:
app/services/shipping/packing_calculator.rb

Overview

Internal representation of one packed unit (quantity already expanded to 1).

Instance Attribute Summary collapse

Instance Attribute Details

#dimensionsObject

Returns the value of attribute dimensions

Returns:

  • (Object)

    the current value of dimensions



76
77
78
# File 'app/services/shipping/packing_calculator.rb', line 76

def dimensions
  @dimensions
end

#item_idObject

Returns the value of attribute item_id

Returns:

  • (Object)

    the current value of item_id



76
77
78
# File 'app/services/shipping/packing_calculator.rb', line 76

def item_id
  @item_id
end

#weightObject

Returns the value of attribute weight

Returns:

  • (Object)

    the current value of weight



76
77
78
# File 'app/services/shipping/packing_calculator.rb', line 76

def weight
  @weight
end