Class: Telnyx::Models::MediaListParams::Filter

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

Consolidated filter parameter (deepObject style). Originally: filter[]

Parameters:

  • content_type (Array<String>) (defaults to: nil)

    Filters files by given content types

  • content_type: (::Array[String]) (defaults to: nil)


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

class Filter < Telnyx::Internal::Type::BaseModel
  # @!attribute content_type
  #   Filters files by given content types
  #
  #   @return [Array<String>, nil]
  optional :content_type, Telnyx::Internal::Type::ArrayOf[String]

  # @!method initialize(content_type: nil)
  #   Consolidated filter parameter (deepObject style). Originally:
  #   filter[content_type][]
  #
  #   @param content_type [Array<String>] Filters files by given content types
end

Instance Attribute Details

#content_typeArray<String>?

Filters files by given content types

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


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

optional :content_type, Telnyx::Internal::Type::ArrayOf[String]

Instance Method Details

#to_hash{ content_type: ::Array[String] }

Returns:

  • ({ content_type: ::Array[String] })


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

def to_hash: -> { content_type: ::Array[String] }