Class: Stripe::V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::GrantCondition::MeterEventFirstPerPeriod::MeterSegmentCondition

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

Defined Under Namespace

Classes: Dimension

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dimensionObject

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

#typeObject

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