Class: Telnyx::Models::MediaListParams::Filter
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::MediaListParams::Filter
- Defined in:
- lib/telnyx/models/media_list_params.rb,
sig/telnyx/models/media_list_params.rbs
Instance Attribute Summary collapse
-
#content_type ⇒ Array<String>?
Filters files by given content types.
Instance Method Summary collapse
-
#initialize(content_type: nil) ⇒ Filter
constructor
Consolidated filter parameter (deepObject style).
- #to_hash ⇒ { content_type: ::Array[String] }
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[]
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_type ⇒ Array<String>?
Filters files by given content types
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] }
36 |
# File 'sig/telnyx/models/media_list_params.rbs', line 36 def to_hash: -> { content_type: ::Array[String] } |