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.



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

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.



78
79
80
# File 'lib/stripe/resources/product.rb', line 78

def height
  @height
end

#lengthObject

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



80
81
82
# File 'lib/stripe/resources/product.rb', line 80

def length
  @length
end

#weightObject

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



82
83
84
# File 'lib/stripe/resources/product.rb', line 82

def weight
  @weight
end

#widthObject

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



84
85
86
# File 'lib/stripe/resources/product.rb', line 84

def width
  @width
end