Class: Cadenya::Types::SetToolCallContentRequest_ImageBlock
- Inherits:
-
Object
- Object
- Cadenya::Types::SetToolCallContentRequest_ImageBlock
- 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_ImageBlock
constructor
A new instance of SetToolCallContentRequest_ImageBlock.
- #to_h ⇒ Object
Constructor Details
#initialize(data: nil, mime_type: nil) ⇒ SetToolCallContentRequest_ImageBlock
Returns a new instance of SetToolCallContentRequest_ImageBlock.
5153 5154 5155 5156 |
# File 'lib/cadenya/types.rb', line 5153 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.
5151 5152 5153 |
# File 'lib/cadenya/types.rb', line 5151 def data @data end |
#mime_type ⇒ Object (readonly)
Returns the value of attribute mime_type.
5151 5152 5153 |
# File 'lib/cadenya/types.rb', line 5151 def mime_type @mime_type end |
Class Method Details
.from_json(data) ⇒ Object
5158 5159 5160 5161 5162 5163 |
# File 'lib/cadenya/types.rb', line 5158 def self.from_json(data) new( data: data["data"], mime_type: data["mimeType"], ) end |