Class: Stripe::OrderService::UpdateParams::LineItem::ProductData::PackageDimensions

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/order_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(height: nil, length: nil, weight: nil, width: nil) ⇒ PackageDimensions

Returns a new instance of PackageDimensions.



1392
1393
1394
1395
1396
1397
# File 'lib/stripe/services/order_service.rb', line 1392

def initialize(height: nil, length: nil, weight: nil, width: nil)
  @height = height
  @length = length
  @weight = weight
  @width = width
end

Instance Attribute Details

#heightObject

Height, in inches. Maximum precision is 2 decimal places.



1381
1382
1383
# File 'lib/stripe/services/order_service.rb', line 1381

def height
  @height
end

#lengthObject

Length, in inches. Maximum precision is 2 decimal places.



1384
1385
1386
# File 'lib/stripe/services/order_service.rb', line 1384

def length
  @length
end

#weightObject

Weight, in ounces. Maximum precision is 2 decimal places.



1387
1388
1389
# File 'lib/stripe/services/order_service.rb', line 1387

def weight
  @weight
end

#widthObject

Width, in inches. Maximum precision is 2 decimal places.



1390
1391
1392
# File 'lib/stripe/services/order_service.rb', line 1390

def width
  @width
end