Class: Stripe::Product::UpdateParams::PackageDimensions
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Product::UpdateParams::PackageDimensions
- Defined in:
- lib/stripe/resources/product.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Height, in inches.
-
#length ⇒ Object
Length, in inches.
-
#weight ⇒ Object
Weight, in ounces.
-
#width ⇒ Object
Width, in inches.
Instance Method Summary collapse
-
#initialize(height: nil, length: nil, weight: nil, width: nil) ⇒ PackageDimensions
constructor
A new instance of PackageDimensions.
Methods inherited from RequestParams
Constructor Details
#initialize(height: nil, length: nil, weight: nil, width: nil) ⇒ PackageDimensions
Returns a new instance of PackageDimensions.
67 68 69 70 71 72 |
# File 'lib/stripe/resources/product.rb', line 67 def initialize(height: nil, length: nil, weight: nil, width: nil) @height = height @length = length @weight = weight @width = width end |
Instance Attribute Details
#height ⇒ Object
Height, in inches. Maximum precision is 2 decimal places.
59 60 61 |
# File 'lib/stripe/resources/product.rb', line 59 def height @height end |
#length ⇒ Object
Length, in inches. Maximum precision is 2 decimal places.
61 62 63 |
# File 'lib/stripe/resources/product.rb', line 61 def length @length end |
#weight ⇒ Object
Weight, in ounces. Maximum precision is 2 decimal places.
63 64 65 |
# File 'lib/stripe/resources/product.rb', line 63 def weight @weight end |
#width ⇒ Object
Width, in inches. Maximum precision is 2 decimal places.
65 66 67 |
# File 'lib/stripe/resources/product.rb', line 65 def width @width end |