Class: Cadenya::Types::ObjectiveToolCallResult_ContentBlock_Image
- Inherits:
-
Object
- Object
- Cadenya::Types::ObjectiveToolCallResult_ContentBlock_Image
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, image: nil) ⇒ ObjectiveToolCallResult_ContentBlock_Image
constructor
A new instance of ObjectiveToolCallResult_ContentBlock_Image.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, image: nil) ⇒ ObjectiveToolCallResult_ContentBlock_Image
Returns a new instance of ObjectiveToolCallResult_ContentBlock_Image.
7832 7833 7834 7835 |
# File 'lib/cadenya/types.rb', line 7832 def initialize(type: nil, image: nil) @type = type @image = image end |
Instance Attribute Details
#image ⇒ Object (readonly)
Returns the value of attribute image.
7830 7831 7832 |
# File 'lib/cadenya/types.rb', line 7830 def image @image end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7830 7831 7832 |
# File 'lib/cadenya/types.rb', line 7830 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
7837 7838 7839 7840 7841 7842 |
# File 'lib/cadenya/types.rb', line 7837 def self.from_json(data) new( type: data["type"], image: data["image"].nil? ? nil : Types::ObjectiveToolCallResult_ImageBlock.from_json(data["image"]), ) end |