Class: Trycourier::Models::Audience

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

Overview

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(id:, created_at:, description:, filter:, name:, updated_at:) ⇒ Object

Parameters:

  • id (String)

    A unique identifier representing the audience_id

  • created_at (String)
  • description (String)

    A description of the audience

  • filter (Trycourier::Models::Filter)

    A single filter to use for filtering

  • name (String)

    The name of the audience

  • updated_at (String)


# File 'lib/trycourier/models/audience.rb', line 41

Instance Attribute Details

#created_atString

Returns:

  • (String)


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

required :created_at, String

#descriptionString

A description of the audience

Returns:

  • (String)


22
# File 'lib/trycourier/models/audience.rb', line 22

required :description, String

#filterTrycourier::Models::Filter

A single filter to use for filtering



28
# File 'lib/trycourier/models/audience.rb', line 28

required :filter, -> { Trycourier::Filter }

#idString

A unique identifier representing the audience_id

Returns:

  • (String)


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

required :id, String

#nameString

The name of the audience

Returns:

  • (String)


34
# File 'lib/trycourier/models/audience.rb', line 34

required :name, String

#updated_atString

Returns:

  • (String)


39
# File 'lib/trycourier/models/audience.rb', line 39

required :updated_at, String