Class: Stripe::Billing::MeterService::CreateParams::DefaultAggregation
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Billing::MeterService::CreateParams::DefaultAggregation
- Defined in:
- lib/stripe/services/billing/meter_service.rb
Instance Attribute Summary collapse
-
#formula ⇒ Object
Specifies how events are aggregated.
Instance Method Summary collapse
-
#initialize(formula: nil) ⇒ DefaultAggregation
constructor
A new instance of DefaultAggregation.
Methods inherited from RequestParams
Constructor Details
#initialize(formula: nil) ⇒ DefaultAggregation
Returns a new instance of DefaultAggregation.
58 59 60 |
# File 'lib/stripe/services/billing/meter_service.rb', line 58 def initialize(formula: nil) @formula = formula end |
Instance Attribute Details
#formula ⇒ Object
Specifies how events are aggregated. Allowed values are ‘count` to count the number of events, `sum` to sum each event’s value and ‘last` to take the last event’s value in the window.
56 57 58 |
# File 'lib/stripe/services/billing/meter_service.rb', line 56 def formula @formula end |