Class: Sentdm::Models::NumberLookupResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/sentdm/models/number_lookup_response.rb

Overview

See Also:

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(carrier_name: nil, country_code: nil, is_ported: nil, is_valid: nil, is_voip: nil, line_type: nil, mobile_country_code: nil, mobile_network_code: nil, phone_number: nil) ⇒ Object

The response data (null if error)

Parameters:

  • carrier_name (String, nil) (defaults to: nil)
  • country_code (String, nil) (defaults to: nil)
  • is_ported (Boolean, nil) (defaults to: nil)
  • is_valid (Boolean) (defaults to: nil)
  • is_voip (Boolean, nil) (defaults to: nil)
  • line_type (String, nil) (defaults to: nil)
  • mobile_country_code (String, nil) (defaults to: nil)
  • mobile_network_code (String, nil) (defaults to: nil)
  • phone_number (String) (defaults to: nil)


# File 'lib/sentdm/models/number_lookup_response.rb', line 89

Instance Attribute Details

#carrier_nameString?

Returns:

  • (String, nil)


47
# File 'lib/sentdm/models/number_lookup_response.rb', line 47

optional :carrier_name, String, nil?: true

#country_codeString?

Returns:

  • (String, nil)


52
# File 'lib/sentdm/models/number_lookup_response.rb', line 52

optional :country_code, String, nil?: true

#is_portedBoolean?

Returns:

  • (Boolean, nil)


57
# File 'lib/sentdm/models/number_lookup_response.rb', line 57

optional :is_ported, Sentdm::Internal::Type::Boolean, nil?: true

#is_validBoolean?

Returns:

  • (Boolean, nil)


62
# File 'lib/sentdm/models/number_lookup_response.rb', line 62

optional :is_valid, Sentdm::Internal::Type::Boolean

#is_voipBoolean?

Returns:

  • (Boolean, nil)


67
# File 'lib/sentdm/models/number_lookup_response.rb', line 67

optional :is_voip, Sentdm::Internal::Type::Boolean, nil?: true

#line_typeString?

Returns:

  • (String, nil)


72
# File 'lib/sentdm/models/number_lookup_response.rb', line 72

optional :line_type, String, nil?: true

#mobile_country_codeString?

Returns:

  • (String, nil)


77
# File 'lib/sentdm/models/number_lookup_response.rb', line 77

optional :mobile_country_code, String, nil?: true

#mobile_network_codeString?

Returns:

  • (String, nil)


82
# File 'lib/sentdm/models/number_lookup_response.rb', line 82

optional :mobile_network_code, String, nil?: true

#phone_numberString?

Returns:

  • (String, nil)


87
# File 'lib/sentdm/models/number_lookup_response.rb', line 87

optional :phone_number, String