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.



95
96
97
98
99
100
# File 'lib/stripe/resources/product.rb', line 95

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.



87
88
89
# File 'lib/stripe/resources/product.rb', line 87

def height
  @height
end

#lengthObject

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



89
90
91
# File 'lib/stripe/resources/product.rb', line 89

def length
  @length
end

#weightObject

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



91
92
93
# File 'lib/stripe/resources/product.rb', line 91

def weight
  @weight
end

#widthObject

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



93
94
95
# File 'lib/stripe/resources/product.rb', line 93

def width
  @width
end