Class: Cadenya::Types::ObjectiveToolCallResult_ContentBlock_Audio
- Inherits:
-
Object
- Object
- Cadenya::Types::ObjectiveToolCallResult_ContentBlock_Audio
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#audio ⇒ Object
readonly
Returns the value of attribute audio.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, audio: nil) ⇒ ObjectiveToolCallResult_ContentBlock_Audio
constructor
A new instance of ObjectiveToolCallResult_ContentBlock_Audio.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, audio: nil) ⇒ ObjectiveToolCallResult_ContentBlock_Audio
Returns a new instance of ObjectiveToolCallResult_ContentBlock_Audio.
7855 7856 7857 7858 |
# File 'lib/cadenya/types.rb', line 7855 def initialize(type: nil, audio: nil) @type = type @audio = audio end |
Instance Attribute Details
#audio ⇒ Object (readonly)
Returns the value of attribute audio.
7853 7854 7855 |
# File 'lib/cadenya/types.rb', line 7853 def audio @audio end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7853 7854 7855 |
# File 'lib/cadenya/types.rb', line 7853 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
7860 7861 7862 7863 7864 7865 |
# File 'lib/cadenya/types.rb', line 7860 def self.from_json(data) new( type: data["type"], audio: data["audio"].nil? ? nil : Types::ObjectiveToolCallResult_AudioBlock.from_json(data["audio"]), ) end |