Class: Trycourier::Models::AudienceRecipient

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/trycourier/models/audience_recipient.rb

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(audience_id:, data: nil, filters: nil) ⇒ Object

Some parameter documentations has been truncated, see Trycourier::Models::AudienceRecipient for more details.

Send to all users in an audience

Parameters:

  • audience_id (String)

    A unique identifier associated with an Audience. A message will be sent to each

  • data (Hash{Symbol=>Object}, nil) (defaults to: nil)
  • filters (Array<Trycourier::Models::AudienceFilter>, nil) (defaults to: nil)


# File 'lib/trycourier/models/audience_recipient.rb', line 23


Instance Attribute Details

#audience_idString

A unique identifier associated with an Audience. A message will be sent to each user in the audience.

Returns:

  • (String)


11
# File 'lib/trycourier/models/audience_recipient.rb', line 11

required :audience_id, String

#dataHash{Symbol=>Object}?

Returns:

  • (Hash{Symbol=>Object}, nil)


16
# File 'lib/trycourier/models/audience_recipient.rb', line 16

optional :data, Trycourier::Internal::Type::HashOf[Trycourier::Internal::Type::Unknown], nil?: true

#filtersArray<Trycourier::Models::AudienceFilter>?

Returns:



21
# File 'lib/trycourier/models/audience_recipient.rb', line 21

optional :filters, -> { Trycourier::Internal::Type::ArrayOf[Trycourier::AudienceFilter] }, nil?: true