Class: Stripe::ProductService::CreateParams::PackageDimensions

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/product_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.



336
337
338
339
340
341
# File 'lib/stripe/services/product_service.rb', line 336

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.



328
329
330
# File 'lib/stripe/services/product_service.rb', line 328

def height
  @height
end

#lengthObject

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



330
331
332
# File 'lib/stripe/services/product_service.rb', line 330

def length
  @length
end

#weightObject

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



332
333
334
# File 'lib/stripe/services/product_service.rb', line 332

def weight
  @weight
end

#widthObject

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



334
335
336
# File 'lib/stripe/services/product_service.rb', line 334

def width
  @width
end