Class: Zavudev::Models::IntrospectValidatePhoneResponse::Carrier

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

Overview

See Also:

  • Zavudev::Models::IntrospectValidatePhoneResponse#carrier

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(name: nil, type: nil) ⇒ Object

Carrier information for the phone number.

Parameters:

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

    Carrier name.

  • type (Symbol, Zavudev::Models::LineType) (defaults to: nil)

    Type of phone line.



# File 'lib/zavudev/models/introspect_validate_phone_response.rb', line 75

Instance Attribute Details

#nameString?

Carrier name.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


67
# File 'lib/zavudev/models/introspect_validate_phone_response.rb', line 67

optional :name, String, nil?: true

#typeSymbol, ...

Type of phone line.

Parameters:

  • (Zavudev::Models::line_type)

Returns:



73
# File 'lib/zavudev/models/introspect_validate_phone_response.rb', line 73

optional :type, enum: -> { Zavudev::LineType }

Instance Method Details

#to_hash{ name: String?, type: Zavudev::Models::line_type }

Returns:

  • ({ name: String?, type: Zavudev::Models::line_type })


73
# File 'sig/zavudev/models/introspect_validate_phone_response.rbs', line 73

def to_hash: -> { name: String?, type: Zavudev::Models::line_type }