Class: Stripe::OrderService::UpdateParams::LineItem::ProductData::PackageDimensions
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::OrderService::UpdateParams::LineItem::ProductData::PackageDimensions
- Defined in:
- lib/stripe/services/order_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.
1295 1296 1297 1298 1299 1300 |
# File 'lib/stripe/services/order_service.rb', line 1295 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.
1287 1288 1289 |
# File 'lib/stripe/services/order_service.rb', line 1287 def height @height end |
#length ⇒ Object
Length, in inches. Maximum precision is 2 decimal places.
1289 1290 1291 |
# File 'lib/stripe/services/order_service.rb', line 1289 def length @length end |
#weight ⇒ Object
Weight, in ounces. Maximum precision is 2 decimal places.
1291 1292 1293 |
# File 'lib/stripe/services/order_service.rb', line 1291 def weight @weight end |
#width ⇒ Object
Width, in inches. Maximum precision is 2 decimal places.
1293 1294 1295 |
# File 'lib/stripe/services/order_service.rb', line 1293 def width @width end |