Class: Stripe::V2::Billing::ServiceActionService::CreateParams::CreditGrantPerTenant::GrantCondition::MeterEventFirstPerPeriod::MeterSegmentCondition
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::ServiceActionService::CreateParams::CreditGrantPerTenant::GrantCondition::MeterEventFirstPerPeriod::MeterSegmentCondition
- Defined in:
- lib/stripe/services/v2/billing/service_action_service.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(type: nil, dimension: nil) ⇒ MeterSegmentCondition
constructor
A new instance of MeterSegmentCondition.
Methods inherited from RequestParams
Constructor Details
#initialize(type: nil, dimension: nil) ⇒ MeterSegmentCondition
Returns a new instance of MeterSegmentCondition.
156 157 158 159 |
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 156 def initialize(type: nil, dimension: nil) @type = type @dimension = dimension end |
Instance Attribute Details
#dimension ⇒ Object
Dimension-based meter segment condition.
154 155 156 |
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 154 def dimension @dimension end |
#type ⇒ Object
The type of the meter segment condition. We currently support ‘dimension`.
152 153 154 |
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 152 def type @type end |