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.



386
387
388
389
390
391
# File 'lib/stripe/resources/product.rb', line 386

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.



378
379
380
# File 'lib/stripe/resources/product.rb', line 378

def height
  @height
end

#lengthObject

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



380
381
382
# File 'lib/stripe/resources/product.rb', line 380

def length
  @length
end

#weightObject

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



382
383
384
# File 'lib/stripe/resources/product.rb', line 382

def weight
  @weight
end

#widthObject

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



384
385
386
# File 'lib/stripe/resources/product.rb', line 384

def width
  @width
end