Class: Courier::Models::ProvidersCatalogEntry

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

Defined Under Namespace

Classes: Setting

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

#initializeObject



23
# File 'sig/courier/models/providers_catalog_entry.rbs', line 23

def initialize: (

Instance Attribute Details

#channelString

Courier taxonomy channel (e.g. email, push, sms, direct_message, inbox, webhook).

Parameters:

  • value (String)

Returns:

  • (String)


11
# File 'lib/courier/models/providers_catalog_entry.rb', line 11

required :channel, String

#descriptionString

Short description of the provider.

Parameters:

  • value (String)

Returns:

  • (String)


17
# File 'lib/courier/models/providers_catalog_entry.rb', line 17

required :description, String

#nameString

Human-readable display name.

Parameters:

  • value (String)

Returns:

  • (String)


23
# File 'lib/courier/models/providers_catalog_entry.rb', line 23

required :name, String

#providerString

The provider key (e.g. "sendgrid", "twilio").

Parameters:

  • value (String)

Returns:

  • (String)


29
# File 'lib/courier/models/providers_catalog_entry.rb', line 29

required :provider, String

#settingsHash{Symbol=>Courier::Models::ProvidersCatalogEntry::Setting}

Map of setting field names (snake_case) to their schema descriptors. Each descriptor has type and required. Empty when the provider has no configurable schema.

Parameters:

  • value (::Hash[Symbol, Courier::ProvidersCatalogEntry::Setting])

Returns:



37
# File 'lib/courier/models/providers_catalog_entry.rb', line 37

required :settings, -> { Courier::Internal::Type::HashOf[Courier::ProvidersCatalogEntry::Setting] }

Instance Method Details

#to_hash{

Returns:

  • ({)


31
# File 'sig/courier/models/providers_catalog_entry.rbs', line 31

def to_hash: -> {