Class: ModerationAPI::Models::ContentSubmitParams::Content::Object::Data::Audio
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModerationAPI::Models::ContentSubmitParams::Content::Object::Data::Audio
- Defined in:
- lib/moderation_api/models/content_submit_params.rb,
sig/moderation_api/models/content_submit_params.rbs
Instance Attribute Summary collapse
- #type ⇒ Symbol, :audio
-
#url ⇒ String
The URL of the audio content.
Instance Method Summary collapse
-
#initialize ⇒ Audio
constructor
A new instance of Audio.
- #to_hash ⇒ { type: :audio, url: 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 ⇒ Audio
Returns a new instance of Audio.
248 |
# File 'sig/moderation_api/models/content_submit_params.rbs', line 248
def initialize: (url: String, ?type: :audio) -> void
|
Instance Attribute Details
#type ⇒ Symbol, :audio
337 |
# File 'lib/moderation_api/models/content_submit_params.rb', line 337 required :type, const: :audio |
#url ⇒ String
The URL of the audio content
343 |
# File 'lib/moderation_api/models/content_submit_params.rb', line 343 required :url, String |
Instance Method Details
#to_hash ⇒ { type: :audio, url: String }
250 |
# File 'sig/moderation_api/models/content_submit_params.rbs', line 250
def to_hash: -> { type: :audio, url: String }
|