Class: HubSpotSDK::Models::Crm::PublicConstantFilter

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/hubspot_sdk/models/crm/public_constant_filter.rb

Defined Under Namespace

Modules: FilterType

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(filter_type:, should_accept:, source: nil) ⇒ Object

Parameters:

  • filter_type (Symbol, HubSpotSDK::Models::Crm::PublicConstantFilter::FilterType)

    Specifies the type of filter, which is (CONSTANT).

  • should_accept (Boolean)

    Indicates whether the filter should accept the condition.

  • source (String) (defaults to: nil)

    Defines the source of the constant filter.



# File 'lib/hubspot_sdk/models/crm/public_constant_filter.rb', line 27

Instance Attribute Details

#filter_typeSymbol, HubSpotSDK::Models::Crm::PublicConstantFilter::FilterType

Specifies the type of filter, which is (CONSTANT).



11
12
13
# File 'lib/hubspot_sdk/models/crm/public_constant_filter.rb', line 11

required :filter_type,
enum: -> { HubSpotSDK::Crm::PublicConstantFilter::FilterType },
api_name: :filterType

#should_acceptBoolean

Indicates whether the filter should accept the condition.

Returns:

  • (Boolean)


19
# File 'lib/hubspot_sdk/models/crm/public_constant_filter.rb', line 19

required :should_accept, HubSpotSDK::Internal::Type::Boolean, api_name: :shouldAccept

#sourceString?

Defines the source of the constant filter.

Returns:

  • (String, nil)


25
# File 'lib/hubspot_sdk/models/crm/public_constant_filter.rb', line 25

optional :source, String