Class: Stripe::OrderService::CreateParams::LineItem::ProductData::PackageDimensions

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/order_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.



178
179
180
181
182
183
# File 'lib/stripe/services/order_service.rb', line 178

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.



170
171
172
# File 'lib/stripe/services/order_service.rb', line 170

def height
  @height
end

#lengthObject

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



172
173
174
# File 'lib/stripe/services/order_service.rb', line 172

def length
  @length
end

#weightObject

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



174
175
176
# File 'lib/stripe/services/order_service.rb', line 174

def weight
  @weight
end

#widthObject

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



176
177
178
# File 'lib/stripe/services/order_service.rb', line 176

def width
  @width
end