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.



239
240
241
242
243
244
# File 'lib/stripe/params/product_create_params.rb', line 239

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.



231
232
233
# File 'lib/stripe/params/product_create_params.rb', line 231

def height
  @height
end

#lengthObject

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



233
234
235
# File 'lib/stripe/params/product_create_params.rb', line 233

def length
  @length
end

#weightObject

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



235
236
237
# File 'lib/stripe/params/product_create_params.rb', line 235

def weight
  @weight
end

#widthObject

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



237
238
239
# File 'lib/stripe/params/product_create_params.rb', line 237

def width
  @width
end