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.



361
362
363
364
365
366
# File 'lib/stripe/resources/product.rb', line 361

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.



353
354
355
# File 'lib/stripe/resources/product.rb', line 353

def height
  @height
end

#lengthObject

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



355
356
357
# File 'lib/stripe/resources/product.rb', line 355

def length
  @length
end

#weightObject

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



357
358
359
# File 'lib/stripe/resources/product.rb', line 357

def weight
  @weight
end

#widthObject

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



359
360
361
# File 'lib/stripe/resources/product.rb', line 359

def width
  @width
end