Class: Stripe::ProductUpdateParams::PackageDimensions
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ProductUpdateParams::PackageDimensions
- Defined in:
- lib/stripe/params/product_update_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
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(height: nil, length: nil, weight: nil, width: nil) ⇒ PackageDimensions
Returns a new instance of PackageDimensions.
52 53 54 55 56 57 |
# File 'lib/stripe/params/product_update_params.rb', line 52 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.
44 45 46 |
# File 'lib/stripe/params/product_update_params.rb', line 44 def height @height end |
#length ⇒ Object
Length, in inches. Maximum precision is 2 decimal places.
46 47 48 |
# File 'lib/stripe/params/product_update_params.rb', line 46 def length @length end |
#weight ⇒ Object
Weight, in ounces. Maximum precision is 2 decimal places.
48 49 50 |
# File 'lib/stripe/params/product_update_params.rb', line 48 def weight @weight end |
#width ⇒ Object
Width, in inches. Maximum precision is 2 decimal places.
50 51 52 |
# File 'lib/stripe/params/product_update_params.rb', line 50 def width @width end |