Class: Courier::Models::Provider
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::Provider
- Defined in:
- lib/courier/models/provider.rb
Overview
Instance Attribute Summary collapse
-
#alias_ ⇒ String?
Optional alias for this configuration.
-
#created ⇒ Integer
Unix timestamp (ms) of when the provider was created.
-
#id ⇒ String
A unique identifier for the provider configuration.
-
#provider ⇒ String
The provider key (e.g. “sendgrid”, “twilio”, “slack”).
-
#settings ⇒ Hash{Symbol=>Object}
Provider-specific settings (snake_case keys on the wire).
-
#title ⇒ String
Display title.
-
#updated ⇒ Integer?
Unix timestamp (ms) of when the provider was last updated.
Instance Method Summary collapse
-
#initialize(id:, created:, provider:, settings:, title:, alias_: nil, updated: nil) ⇒ Object
constructor
A configured provider in the workspace.
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:, provider:, settings:, title:, alias_: nil, updated: nil) ⇒ Object
A configured provider in the workspace.
|
|
# File 'lib/courier/models/provider.rb', line 49
|
Instance Attribute Details
#alias_ ⇒ String?
Optional alias for this configuration.
41 |
# File 'lib/courier/models/provider.rb', line 41 optional :alias_, String, api_name: :alias |
#created ⇒ Integer
Unix timestamp (ms) of when the provider was created.
17 |
# File 'lib/courier/models/provider.rb', line 17 required :created, Integer |
#id ⇒ String
A unique identifier for the provider configuration.
11 |
# File 'lib/courier/models/provider.rb', line 11 required :id, String |
#provider ⇒ String
The provider key (e.g. “sendgrid”, “twilio”, “slack”).
23 |
# File 'lib/courier/models/provider.rb', line 23 required :provider, String |
#settings ⇒ Hash{Symbol=>Object}
Provider-specific settings (snake_case keys on the wire).
29 |
# File 'lib/courier/models/provider.rb', line 29 required :settings, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown] |
#title ⇒ String
Display title. Defaults to “Default Configuration” when not explicitly set.
35 |
# File 'lib/courier/models/provider.rb', line 35 required :title, String |
#updated ⇒ Integer?
Unix timestamp (ms) of when the provider was last updated.
47 |
# File 'lib/courier/models/provider.rb', line 47 optional :updated, Integer, nil?: true |