Class: Telnyx::Models::EmailTemplate

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

Overview

See Also:

  • Telnyx::Resources::EmailTemplates#list

Defined Under Namespace

Modules: RecordType

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:, html_body:, name:, record_type:, subject:, text_body:, updated_at:, variables:) ⇒ Object

Parameters:

  • id (String)
  • created_at (Time)
  • html_body (String, nil)
  • name (String)
  • record_type (Symbol, Telnyx::Models::EmailTemplate::RecordType)
  • subject (String, nil)
  • text_body (String, nil)
  • updated_at (Time)
  • variables (Array<String>)


# File 'lib/telnyx/models/email_template.rb', line 52

Instance Attribute Details

#created_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


15
# File 'lib/telnyx/models/email_template.rb', line 15

required :created_at, Time

#html_bodyString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


20
# File 'lib/telnyx/models/email_template.rb', line 20

required :html_body, String, nil?: true

#idString

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/telnyx/models/email_template.rb', line 10

required :id, String

#nameString

Parameters:

  • value (String)

Returns:

  • (String)


25
# File 'lib/telnyx/models/email_template.rb', line 25

required :name, String

#record_typeSymbol, Telnyx::Models::EmailTemplate::RecordType

Parameters:

  • value (Telnyx::Models::EmailTemplate::record_type)

Returns:



30
# File 'lib/telnyx/models/email_template.rb', line 30

required :record_type, enum: -> { Telnyx::EmailTemplate::RecordType }

#subjectString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


35
# File 'lib/telnyx/models/email_template.rb', line 35

required :subject, String, nil?: true

#text_bodyString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


40
# File 'lib/telnyx/models/email_template.rb', line 40

required :text_body, String, nil?: true

#updated_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


45
# File 'lib/telnyx/models/email_template.rb', line 45

required :updated_at, Time

#variablesArray<String>

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


50
# File 'lib/telnyx/models/email_template.rb', line 50

required :variables, Telnyx::Internal::Type::ArrayOf[String]

Instance Method Details

#to_hash{

Returns:

  • ({)


47
# File 'sig/telnyx/models/email_template.rbs', line 47

def to_hash: -> {