Class: Stripe::Order::CreateParams::LineItem::ProductData::PackageDimensions
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Order::CreateParams::LineItem::ProductData::PackageDimensions
- Defined in:
- lib/stripe/resources/order.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.
667 668 669 670 671 672 |
# File 'lib/stripe/resources/order.rb', line 667 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.
659 660 661 |
# File 'lib/stripe/resources/order.rb', line 659 def height @height end |
#length ⇒ Object
Length, in inches. Maximum precision is 2 decimal places.
661 662 663 |
# File 'lib/stripe/resources/order.rb', line 661 def length @length end |
#weight ⇒ Object
Weight, in ounces. Maximum precision is 2 decimal places.
663 664 665 |
# File 'lib/stripe/resources/order.rb', line 663 def weight @weight end |
#width ⇒ Object
Width, in inches. Maximum precision is 2 decimal places.
665 666 667 |
# File 'lib/stripe/resources/order.rb', line 665 def width @width end |