Class: Cadenya::Types::SetToolCallContentRequest_AudioBlock
- Inherits:
-
Object
- Object
- Cadenya::Types::SetToolCallContentRequest_AudioBlock
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#mime_type ⇒ Object
readonly
Returns the value of attribute mime_type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data: nil, mime_type: nil) ⇒ SetToolCallContentRequest_AudioBlock
constructor
A new instance of SetToolCallContentRequest_AudioBlock.
- #to_h ⇒ Object
Constructor Details
#initialize(data: nil, mime_type: nil) ⇒ SetToolCallContentRequest_AudioBlock
Returns a new instance of SetToolCallContentRequest_AudioBlock.
5116 5117 5118 5119 |
# File 'lib/cadenya/types.rb', line 5116 def initialize(data: nil, mime_type: nil) @data = data @mime_type = mime_type end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5114 5115 5116 |
# File 'lib/cadenya/types.rb', line 5114 def data @data end |
#mime_type ⇒ Object (readonly)
Returns the value of attribute mime_type.
5114 5115 5116 |
# File 'lib/cadenya/types.rb', line 5114 def mime_type @mime_type end |
Class Method Details
.from_json(data) ⇒ Object
5121 5122 5123 5124 5125 5126 |
# File 'lib/cadenya/types.rb', line 5121 def self.from_json(data) new( data: data["data"], mime_type: data["mimeType"], ) end |