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, discriminator, discriminator_fields, field_encodings, new, #to_h

Constructor Details

#initialize(height: nil, length: nil, weight: nil, width: nil) ⇒ PackageDimensions

Returns a new instance of PackageDimensions.



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

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.



204
205
206
# File 'lib/stripe/params/product_create_params.rb', line 204

def height
  @height
end

#lengthObject

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



206
207
208
# File 'lib/stripe/params/product_create_params.rb', line 206

def length
  @length
end

#weightObject

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



208
209
210
# File 'lib/stripe/params/product_create_params.rb', line 208

def weight
  @weight
end

#widthObject

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



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

def width
  @width
end