Class: Stripe::Billing::Meter::CreateParams::ValueSettings
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Billing::Meter::CreateParams::ValueSettings
- Defined in:
- lib/stripe/resources/billing/meter.rb
Instance Attribute Summary collapse
-
#event_payload_key ⇒ Object
The key in the usage event payload to use as the value for this meter.
Instance Method Summary collapse
-
#initialize(event_payload_key: nil) ⇒ ValueSettings
constructor
A new instance of ValueSettings.
Methods inherited from RequestParams
Constructor Details
#initialize(event_payload_key: nil) ⇒ ValueSettings
Returns a new instance of ValueSettings.
99 100 101 |
# File 'lib/stripe/resources/billing/meter.rb', line 99 def initialize(event_payload_key: nil) @event_payload_key = event_payload_key end |
Instance Attribute Details
#event_payload_key ⇒ Object
The key in the usage event payload to use as the value for this meter. For example, if the event payload contains usage on a ‘bytes_used` field, then set the event_payload_key to “bytes_used”.
97 98 99 |
# File 'lib/stripe/resources/billing/meter.rb', line 97 def event_payload_key @event_payload_key end |