Class: Stripe::V2::Billing::ServiceActionService::CreateParams::CreditGrantPerTenant::GrantCondition::MeterEventFirstPerPeriod::MeterSegmentCondition

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/v2/billing/service_action_service.rb

Defined Under Namespace

Classes: Dimension

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(type: nil, dimension: nil) ⇒ MeterSegmentCondition

Returns a new instance of MeterSegmentCondition.



169
170
171
172
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 169

def initialize(type: nil, dimension: nil)
  @type = type
  @dimension = dimension
end

Instance Attribute Details

#dimensionObject

Dimension-based meter segment condition.



167
168
169
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 167

def dimension
  @dimension
end

#typeObject

The type of the meter segment condition. We currently support ‘dimension`.



165
166
167
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 165

def type
  @type
end