Class: Stripe::Billing::Meter::CreateParams::DefaultAggregation
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Billing::Meter::CreateParams::DefaultAggregation
- Defined in:
- lib/stripe/resources/billing/meter.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.
96 97 98 |
# File 'lib/stripe/resources/billing/meter.rb', line 96 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 and `sum` to sum each event’s value.
94 95 96 |
# File 'lib/stripe/resources/billing/meter.rb', line 94 def formula @formula end |