Class: Telnyx::Models::EmailTemplate

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

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 51

Instance Attribute Details

#created_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :created_at, Time

#html_bodyString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :html_body, String, nil?: true

#idString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#nameString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :name, String

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

Parameters:

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

Returns:



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

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

#subjectString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :subject, String, nil?: true

#text_bodyString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :text_body, String, nil?: true

#updated_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :updated_at, Time

#variablesArray<String>

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


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

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: -> {