Class: Stripe::ProductService::UpdateParams::PackageDimensions

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/product_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of PackageDimensions.



45
46
47
48
49
50
# File 'lib/stripe/services/product_service.rb', line 45

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.



37
38
39
# File 'lib/stripe/services/product_service.rb', line 37

def height
  @height
end

#lengthObject

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



39
40
41
# File 'lib/stripe/services/product_service.rb', line 39

def length
  @length
end

#weightObject

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



41
42
43
# File 'lib/stripe/services/product_service.rb', line 41

def weight
  @weight
end

#widthObject

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



43
44
45
# File 'lib/stripe/services/product_service.rb', line 43

def width
  @width
end