Class: Telnyx::Models::UpdateEmailTemplateRequest

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

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

Parameters:

  • html_body (String, nil) (defaults to: nil)

    Liquid template HTML body.

  • name (String) (defaults to: nil)
  • subject (String, nil) (defaults to: nil)

    Liquid template subject.

  • text_body (String, nil) (defaults to: nil)

    Liquid template text body.

  • variables (Array<String>) (defaults to: nil)


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

Instance Attribute Details

#html_bodyString?

Liquid template HTML body.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :html_body, String, nil?: true

#nameString?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :name, String

#subjectString?

Liquid template subject.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


21
# File 'lib/telnyx/models/update_email_template_request.rb', line 21

optional :subject, String, nil?: true

#text_bodyString?

Liquid template text body.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


27
# File 'lib/telnyx/models/update_email_template_request.rb', line 27

optional :text_body, String, nil?: true

#variablesArray<String>?

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


32
# File 'lib/telnyx/models/update_email_template_request.rb', line 32

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

Instance Method Details

#to_hash{

Returns:

  • ({)


35
# File 'sig/telnyx/models/update_email_template_request.rbs', line 35

def to_hash: -> {