Class: Stripe::Product::CreateParams::PackageDimensions

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



444
445
446
447
448
449
# File 'lib/stripe/resources/product.rb', line 444

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.



433
434
435
# File 'lib/stripe/resources/product.rb', line 433

def height
  @height
end

#lengthObject

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



436
437
438
# File 'lib/stripe/resources/product.rb', line 436

def length
  @length
end

#weightObject

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



439
440
441
# File 'lib/stripe/resources/product.rb', line 439

def weight
  @weight
end

#widthObject

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



442
443
444
# File 'lib/stripe/resources/product.rb', line 442

def width
  @width
end