Class: Stripe::Checkout::SessionCreateParams::ShippingOption::ShippingRateData::DeliveryEstimate::Maximum

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/checkout/session_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, new, #to_h

Constructor Details

#initialize(unit: nil, value: nil) ⇒ Maximum

Returns a new instance of Maximum.



2219
2220
2221
2222
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2219

def initialize(unit: nil, value: nil)
  @unit = unit
  @value = value
end

Instance Attribute Details

#unitObject

A unit of time.



2215
2216
2217
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2215

def unit
  @unit
end

#valueObject

Must be greater than 0.



2217
2218
2219
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2217

def value
  @value
end