Class: Stripe::Product::UpdateParams::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.



66
67
68
69
70
71
# File 'lib/stripe/resources/product.rb', line 66

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.



58
59
60
# File 'lib/stripe/resources/product.rb', line 58

def height
  @height
end

#lengthObject

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



60
61
62
# File 'lib/stripe/resources/product.rb', line 60

def length
  @length
end

#weightObject

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



62
63
64
# File 'lib/stripe/resources/product.rb', line 62

def weight
  @weight
end

#widthObject

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



64
65
66
# File 'lib/stripe/resources/product.rb', line 64

def width
  @width
end