Class: Stripe::ProductUpdateParams::PackageDimensions

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/product_update_params.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.



25
26
27
28
29
30
# File 'lib/stripe/params/product_update_params.rb', line 25

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.



17
18
19
# File 'lib/stripe/params/product_update_params.rb', line 17

def height
  @height
end

#lengthObject

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



19
20
21
# File 'lib/stripe/params/product_update_params.rb', line 19

def length
  @length
end

#weightObject

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



21
22
23
# File 'lib/stripe/params/product_update_params.rb', line 21

def weight
  @weight
end

#widthObject

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



23
24
25
# File 'lib/stripe/params/product_update_params.rb', line 23

def width
  @width
end