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.



218
219
220
221
222
223
# File 'lib/stripe/params/product_create_params.rb', line 218

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.



210
211
212
# File 'lib/stripe/params/product_create_params.rb', line 210

def height
  @height
end

#lengthObject

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



212
213
214
# File 'lib/stripe/params/product_create_params.rb', line 212

def length
  @length
end

#weightObject

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



214
215
216
# File 'lib/stripe/params/product_create_params.rb', line 214

def weight
  @weight
end

#widthObject

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



216
217
218
# File 'lib/stripe/params/product_create_params.rb', line 216

def width
  @width
end