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.



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

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.



369
370
371
# File 'lib/stripe/resources/product.rb', line 369

def height
  @height
end

#lengthObject

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



371
372
373
# File 'lib/stripe/resources/product.rb', line 371

def length
  @length
end

#weightObject

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



373
374
375
# File 'lib/stripe/resources/product.rb', line 373

def weight
  @weight
end

#widthObject

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



375
376
377
# File 'lib/stripe/resources/product.rb', line 375

def width
  @width
end