Class: Stripe::Billing::MeterService::CreateParams::DefaultAggregation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(formula: nil) ⇒ DefaultAggregation

Returns a new instance of DefaultAggregation.



63
64
65
# File 'lib/stripe/services/billing/meter_service.rb', line 63

def initialize(formula: nil)
  @formula = formula
end

Instance Attribute Details

#formulaObject

Specifies how events are aggregated. Allowed values are ‘count` to count the number of events and `sum` to sum each event’s value.



61
62
63
# File 'lib/stripe/services/billing/meter_service.rb', line 61

def formula
  @formula
end