Class: Stripe::Order::UpdateParams::LineItem::ProductData::PackageDimensions

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/order.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(height: nil, length: nil, weight: nil, width: nil) ⇒ PackageDimensions

Returns a new instance of PackageDimensions.



2094
2095
2096
2097
2098
2099
# File 'lib/stripe/resources/order.rb', line 2094

def initialize(height: nil, length: nil, weight: nil, width: nil)
  @height = height
  @length = length
  @weight = weight
  @width = width
end

Instance Attribute Details

#heightObject

Height, in inches. Maximum precision is 2 decimal places.



2086
2087
2088
# File 'lib/stripe/resources/order.rb', line 2086

def height
  @height
end

#lengthObject

Length, in inches. Maximum precision is 2 decimal places.



2088
2089
2090
# File 'lib/stripe/resources/order.rb', line 2088

def length
  @length
end

#weightObject

Weight, in ounces. Maximum precision is 2 decimal places.



2090
2091
2092
# File 'lib/stripe/resources/order.rb', line 2090

def weight
  @weight
end

#widthObject

Width, in inches. Maximum precision is 2 decimal places.



2092
2093
2094
# File 'lib/stripe/resources/order.rb', line 2092

def width
  @width
end