Class: Telnyx::Models::EmailBlock
Overview
Defined Under Namespace
Modules: Reason, RecordType, Scope, Source, Status
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
-
#initialize(id:, created_at:, reason:, record_type:, scope:, source:, status:, to:, updated_at:, domain_id: nil, expires_at: nil, from: nil, group_id: nil) ⇒ Object
constructor
-
#to_hash ⇒ {
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, created_at:, reason:, record_type:, scope:, source:, status:, to:, updated_at:, domain_id: nil, expires_at: nil, from: nil, group_id: nil) ⇒ Object
Suppression record. Schema fields hidden by the view: account_id,
bounce_category, dsn_code, meta.
|
# File 'lib/telnyx/models/email_block.rb', line 78
|
Instance Attribute Details
#created_at ⇒ Time
15
|
# File 'lib/telnyx/models/email_block.rb', line 15
required :created_at, Time
|
#domain_id ⇒ String?
null ⇒ account scope. Stored on the row; exposed here.
59
|
# File 'lib/telnyx/models/email_block.rb', line 59
optional :domain_id, String, nil?: true
|
#expires_at ⇒ Time?
64
|
# File 'lib/telnyx/models/email_block.rb', line 64
optional :expires_at, Time, nil?: true
|
#from ⇒ String?
null ⇒ not address-scope. (schema: from_address)
70
|
# File 'lib/telnyx/models/email_block.rb', line 70
optional :from, String, nil?: true
|
#group_id ⇒ String?
null ⇒ global; set ⇒ group-scoped opt-out.
76
|
# File 'lib/telnyx/models/email_block.rb', line 76
optional :group_id, String, nil?: true
|
#id ⇒ String
10
|
# File 'lib/telnyx/models/email_block.rb', line 10
required :id, String
|
20
|
# File 'lib/telnyx/models/email_block.rb', line 20
required :reason, enum: -> { Telnyx::EmailBlock::Reason }
|
26
|
# File 'lib/telnyx/models/email_block.rb', line 26
required :record_type, enum: -> { Telnyx::EmailBlock::RecordType }
|
Derived server-side from domain_id/from; never trusted from the caller.
32
|
# File 'lib/telnyx/models/email_block.rb', line 32
required :scope, enum: -> { Telnyx::EmailBlock::Scope }
|
37
|
# File 'lib/telnyx/models/email_block.rb', line 37
required :source, enum: -> { Telnyx::EmailBlock::Source }
|
42
|
# File 'lib/telnyx/models/email_block.rb', line 42
required :status, enum: -> { Telnyx::EmailBlock::Status }
|
#to ⇒ String
Normalized recipient. (schema: to_address)
48
|
# File 'lib/telnyx/models/email_block.rb', line 48
required :to, String
|
#updated_at ⇒ Time
53
|
# File 'lib/telnyx/models/email_block.rb', line 53
required :updated_at, Time
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/telnyx/models/email_block.rb', line 118
|
Instance Method Details
#to_hash ⇒ {
63
|
# File 'sig/telnyx/models/email_block.rbs', line 63
def to_hash: -> {
|