Class: Stripe::ProductCreateParams::PackageDimensions
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ProductCreateParams::PackageDimensions
- Defined in:
- lib/stripe/params/product_create_params.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Height, in inches.
-
#length ⇒ Object
Length, in inches.
-
#weight ⇒ Object
Weight, in ounces.
-
#width ⇒ Object
Width, in inches.
Instance Method Summary collapse
-
#initialize(height: nil, length: nil, weight: nil, width: nil) ⇒ PackageDimensions
constructor
A new instance of PackageDimensions.
Methods inherited from RequestParams
Constructor Details
#initialize(height: nil, length: nil, weight: nil, width: nil) ⇒ PackageDimensions
164 165 166 167 168 169 |
# File 'lib/stripe/params/product_create_params.rb', line 164 def initialize(height: nil, length: nil, weight: nil, width: nil) @height = height @length = length @weight = weight @width = width end |
Instance Attribute Details
#height ⇒ Object
Height, in inches. Maximum precision is 2 decimal places.
156 157 158 |
# File 'lib/stripe/params/product_create_params.rb', line 156 def height @height end |
#length ⇒ Object
Length, in inches. Maximum precision is 2 decimal places.
158 159 160 |
# File 'lib/stripe/params/product_create_params.rb', line 158 def length @length end |
#weight ⇒ Object
Weight, in ounces. Maximum precision is 2 decimal places.
160 161 162 |
# File 'lib/stripe/params/product_create_params.rb', line 160 def weight @weight end |
#width ⇒ Object
Width, in inches. Maximum precision is 2 decimal places.
162 163 164 |
# File 'lib/stripe/params/product_create_params.rb', line 162 def width @width end |