Class: Telnyx::Models::EmailValidationCheck

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/email_validation_check.rb,
sig/telnyx/models/email_validation_check.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(pass:, details: nil) ⇒ EmailValidationCheck

Returns a new instance of EmailValidationCheck.

Parameters:

  • pass (Boolean)
  • details (String) (defaults to: nil)

    Human-readable check detail. Omitted when nil.

  • pass: (Boolean)
  • details: (String) (defaults to: nil)


# File 'lib/telnyx/models/email_validation_check.rb', line 17

Instance Attribute Details

#detailsString?

Human-readable check detail. Omitted when nil.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :details, String

#passBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


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

required :pass, Telnyx::Internal::Type::Boolean

Instance Method Details

#to_hash{ pass: bool, details: String }

Returns:

  • ({ pass: bool, details: String })


14
# File 'sig/telnyx/models/email_validation_check.rbs', line 14

def to_hash: -> { pass: bool, details: String }