Class: Cloudflare::AI::Results::TextToImage
- Inherits:
-
Cloudflare::AI::Result
- Object
- Cloudflare::AI::Result
- Cloudflare::AI::Results::TextToImage
- Defined in:
- lib/cloudflare/ai/results/text_to_image.rb
Instance Method Summary collapse
-
#initialize(file) ⇒ TextToImage
constructor
A new instance of TextToImage.
Constructor Details
#initialize(file) ⇒ TextToImage
Returns a new instance of TextToImage.
2 3 4 |
# File 'lib/cloudflare/ai/results/text_to_image.rb', line 2 def initialize(file) @result_data = {result: file, success: true, errors: [], messages: []} end |