Class: Stripe::Product::CreateParams::PackageDimensions
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Product::CreateParams::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.
362 363 364 365 366 367 |
# File 'lib/stripe/resources/product.rb', line 362 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.
354 355 356 |
# File 'lib/stripe/resources/product.rb', line 354 def height @height end |
#length ⇒ Object
Length, in inches. Maximum precision is 2 decimal places.
356 357 358 |
# File 'lib/stripe/resources/product.rb', line 356 def length @length end |
#weight ⇒ Object
Weight, in ounces. Maximum precision is 2 decimal places.
358 359 360 |
# File 'lib/stripe/resources/product.rb', line 358 def weight @weight end |
#width ⇒ Object
Width, in inches. Maximum precision is 2 decimal places.
360 361 362 |
# File 'lib/stripe/resources/product.rb', line 360 def width @width end |