Class: Stripe::ProductCreateParams::PackageDimensions

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/product_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.



191
192
193
194
195
196
# File 'lib/stripe/params/product_create_params.rb', line 191

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.



183
184
185
# File 'lib/stripe/params/product_create_params.rb', line 183

def height
  @height
end

#lengthObject

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



185
186
187
# File 'lib/stripe/params/product_create_params.rb', line 185

def length
  @length
end

#weightObject

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



187
188
189
# File 'lib/stripe/params/product_create_params.rb', line 187

def weight
  @weight
end

#widthObject

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



189
190
191
# File 'lib/stripe/params/product_create_params.rb', line 189

def width
  @width
end