Class: Telnyx::Models::NumberOrderPhoneNumberListParams::Filter

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

Consolidated filter parameter (deepObject style). Originally: filter

Parameters:

  • country_code (String) (defaults to: nil)

    Country code of the order phone number.

  • country_code: (String) (defaults to: nil)


25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/telnyx/models/number_order_phone_number_list_params.rb', line 25

class Filter < Telnyx::Internal::Type::BaseModel
  # @!attribute country_code
  #   Country code of the order phone number.
  #
  #   @return [String, nil]
  optional :country_code, String

  # @!method initialize(country_code: nil)
  #   Consolidated filter parameter (deepObject style). Originally:
  #   filter[country_code]
  #
  #   @param country_code [String] Country code of the order phone number.
end

Instance Attribute Details

#country_codeString?

Country code of the order phone number.

Parameters:

  • (String)

Returns:

  • (String, nil)


30
# File 'lib/telnyx/models/number_order_phone_number_list_params.rb', line 30

optional :country_code, String

Instance Method Details

#to_hash{ country_code: String }

Returns:

  • ({ country_code: String })


36
# File 'sig/telnyx/models/number_order_phone_number_list_params.rbs', line 36

def to_hash: -> { country_code: String }