Class: ModerationAPI::Models::ContentSubmitResponse::Content::Modified::ModifiedNestedObjectContent::Audio

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/moderation_api/models/content_submit_response.rb,
sig/moderation_api/models/content_submit_response.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

#initializeAudio

Returns a new instance of Audio.

Parameters:

  • url: (String)
  • type: (:audio)


232
# File 'sig/moderation_api/models/content_submit_response.rbs', line 232

def initialize: (url: String, ?type: :audio) -> void

Instance Attribute Details

#typeSymbol, :audio

Parameters:

  • value (:audio)

Returns:

  • (Symbol, :audio)


330
# File 'lib/moderation_api/models/content_submit_response.rb', line 330

required :type, const: :audio

#urlString

The URL of the audio content

Parameters:

  • value (String)

Returns:

  • (String)


336
# File 'lib/moderation_api/models/content_submit_response.rb', line 336

required :url, String

Instance Method Details

#to_hash{ type: :audio, url: String }

Returns:

  • ({ type: :audio, url: String })


234
# File 'sig/moderation_api/models/content_submit_response.rbs', line 234

def to_hash: -> { type: :audio, url: String }