Class: Stripe::ProductService::CreateParams::PackageDimensions
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ProductService::CreateParams::PackageDimensions
- Defined in:
- lib/stripe/services/product_service.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.
340 341 342 343 344 345 |
# File 'lib/stripe/services/product_service.rb', line 340 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.
332 333 334 |
# File 'lib/stripe/services/product_service.rb', line 332 def height @height end |
#length ⇒ Object
Length, in inches. Maximum precision is 2 decimal places.
334 335 336 |
# File 'lib/stripe/services/product_service.rb', line 334 def length @length end |
#weight ⇒ Object
Weight, in ounces. Maximum precision is 2 decimal places.
336 337 338 |
# File 'lib/stripe/services/product_service.rb', line 336 def weight @weight end |
#width ⇒ Object
Width, in inches. Maximum precision is 2 decimal places.
338 339 340 |
# File 'lib/stripe/services/product_service.rb', line 338 def width @width end |