Class: Telnyx::Models::DynamicEmergencyEndpointListParams::Filter

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

Defined Under Namespace

Modules: Status

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, status: nil) ⇒ Object

Consolidated filter parameter (deepObject style). Originally: filter, filter

Parameters:



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/telnyx/models/dynamic_emergency_endpoint_list_params.rb', line 39

class Filter < Telnyx::Internal::Type::BaseModel
  # @!attribute country_code
  #   Filter by country code.
  #
  #   @return [String, nil]
  optional :country_code, String

  # @!attribute status
  #   Filter by status.
  #
  #   @return [Symbol, Telnyx::Models::DynamicEmergencyEndpointListParams::Filter::Status, nil]
  optional :status, enum: -> { Telnyx::DynamicEmergencyEndpointListParams::Filter::Status }

  # @!method initialize(country_code: nil, status: nil)
  #   Consolidated filter parameter (deepObject style). Originally: filter[status],
  #   filter[country_code]
  #
  #   @param country_code [String] Filter by country code.
  #
  #   @param status [Symbol, Telnyx::Models::DynamicEmergencyEndpointListParams::Filter::Status] Filter by status.

  # Filter by status.
  #
  # @see Telnyx::Models::DynamicEmergencyEndpointListParams::Filter#status
  module Status
    extend Telnyx::Internal::Type::Enum

    PENDING = :pending
    ACTIVATED = :activated
    REJECTED = :rejected

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#country_codeString?

Filter by country code.

Parameters:

  • (String)

Returns:

  • (String, nil)


44
# File 'lib/telnyx/models/dynamic_emergency_endpoint_list_params.rb', line 44

optional :country_code, String

#statusSymbol, ...

Filter by status.



50
# File 'lib/telnyx/models/dynamic_emergency_endpoint_list_params.rb', line 50

optional :status, enum: -> { Telnyx::DynamicEmergencyEndpointListParams::Filter::Status }

Instance Method Details

#to_hash{

Returns:

  • ({)


65
# File 'sig/telnyx/models/dynamic_emergency_endpoint_list_params.rbs', line 65

def to_hash: -> {