Class: Stripe::V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::GrantCondition::MeterEventFirstPerPeriod::MeterSegmentCondition
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::GrantCondition::MeterEventFirstPerPeriod::MeterSegmentCondition
- Defined in:
- lib/stripe/params/v2/billing/service_action_create_params.rb
Defined Under Namespace
Classes: Dimension
Instance Attribute Summary collapse
-
#dimension ⇒ Object
Dimension-based meter segment condition.
-
#type ⇒ Object
The type of the meter segment condition.
Instance Method Summary collapse
-
#initialize(dimension: nil, type: nil) ⇒ MeterSegmentCondition
constructor
A new instance of MeterSegmentCondition.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(dimension: nil, type: nil) ⇒ MeterSegmentCondition
Returns a new instance of MeterSegmentCondition.
197 198 199 200 |
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 197 def initialize(dimension: nil, type: nil) @dimension = dimension @type = type end |
Instance Attribute Details
#dimension ⇒ Object
Dimension-based meter segment condition.
193 194 195 |
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 193 def dimension @dimension end |
#type ⇒ Object
The type of the meter segment condition. We currently support ‘dimension`.
195 196 197 |
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 195 def type @type end |