Class: Stripe::ShippingRate::CreateParams::DeliveryEstimate

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/shipping_rate.rb

Defined Under Namespace

Classes: Maximum, Minimum

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(maximum: nil, minimum: nil) ⇒ DeliveryEstimate

Returns a new instance of DeliveryEstimate.



134
135
136
137
# File 'lib/stripe/resources/shipping_rate.rb', line 134

def initialize(maximum: nil, minimum: nil)
  @maximum = maximum
  @minimum = minimum
end

Instance Attribute Details

#maximumObject

The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.



130
131
132
# File 'lib/stripe/resources/shipping_rate.rb', line 130

def maximum
  @maximum
end

#minimumObject

The lower bound of the estimated range. If empty, represents no lower bound.



132
133
134
# File 'lib/stripe/resources/shipping_rate.rb', line 132

def minimum
  @minimum
end