Class: Cloudflare::AI::Results::TextToImage

Inherits:
Cloudflare::AI::Result
  • Object
show all
Defined in:
lib/cloudflare/ai/results/text_to_image.rb

Instance Method Summary collapse

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