Class: Orb::Models::Price::BulkWithFilters::BulkWithFiltersConfig

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/price.rb,
sig/orb/models/price.rbs

Overview

See Also:

  • Orb::Models::Price::BulkWithFilters#bulk_with_filters_config

Defined Under Namespace

Classes: Filter, Tier

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(property_key:, property_value:) ⇒ Object

Configuration for a single property filter

Parameters:

  • property_key (String) —

    Event property key to filter on

  • property_value (String) —

    Event property value to match



# File 'lib/orb/models/price.rb', line 1472

Instance Attribute Details

#filters ⇒ Array<Orb::Models::Price::BulkWithFilters::BulkWithFiltersConfig::Filter>

Property filters to apply (all must match)

Parameters:

  • value (::Array[Orb::Price::BulkWithFilters::BulkWithFiltersConfig::Filter])

Returns:



1442
1443
# File 'lib/orb/models/price.rb', line 1442

required :filters,
-> { Orb::Internal::Type::ArrayOf[Orb::Price::BulkWithFilters::BulkWithFiltersConfig::Filter] }

#tiers ⇒ Array<Orb::Models::Price::BulkWithFilters::BulkWithFiltersConfig::Tier>

Bulk tiers for rating based on total usage volume

Parameters:

  • value (::Array[Orb::Price::BulkWithFilters::BulkWithFiltersConfig::Tier])

Returns:



1449
1450
# File 'lib/orb/models/price.rb', line 1449

required :tiers,
-> { Orb::Internal::Type::ArrayOf[Orb::Price::BulkWithFilters::BulkWithFiltersConfig::Tier] }

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


1048
# File 'sig/orb/models/price.rbs', line 1048

def to_hash: -> {