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.



1740
1741
1742
1743
1744
1745
# File 'lib/stripe/resources/order.rb', line 1740

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.



1732
1733
1734
# File 'lib/stripe/resources/order.rb', line 1732

def height
  @height
end

#lengthObject

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



1734
1735
1736
# File 'lib/stripe/resources/order.rb', line 1734

def length
  @length
end

#weightObject

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



1736
1737
1738
# File 'lib/stripe/resources/order.rb', line 1736

def weight
  @weight
end

#widthObject

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



1738
1739
1740
# File 'lib/stripe/resources/order.rb', line 1738

def width
  @width
end