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.



1247
1248
1249
1250
1251
1252
# File 'lib/stripe/services/order_service.rb', line 1247

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.



1239
1240
1241
# File 'lib/stripe/services/order_service.rb', line 1239

def height
  @height
end

#lengthObject

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



1241
1242
1243
# File 'lib/stripe/services/order_service.rb', line 1241

def length
  @length
end

#weightObject

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



1243
1244
1245
# File 'lib/stripe/services/order_service.rb', line 1243

def weight
  @weight
end

#widthObject

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



1245
1246
1247
# File 'lib/stripe/services/order_service.rb', line 1245

def width
  @width
end