Class: Stripe::Order::CreateParams::LineItem::ProductData::PackageDimensions

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



671
672
673
674
675
676
# File 'lib/stripe/resources/order.rb', line 671

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.



663
664
665
# File 'lib/stripe/resources/order.rb', line 663

def height
  @height
end

#lengthObject

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



665
666
667
# File 'lib/stripe/resources/order.rb', line 665

def length
  @length
end

#weightObject

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



667
668
669
# File 'lib/stripe/resources/order.rb', line 667

def weight
  @weight
end

#widthObject

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



669
670
671
# File 'lib/stripe/resources/order.rb', line 669

def width
  @width
end