Class: ImageGeneration::Service::GenerateResult
- Inherits:
-
Data
- Object
- Data
- ImageGeneration::Service::GenerateResult
- Defined in:
- app/services/image_generation/service.rb
Overview
Generate an image.
Instance Attribute Summary collapse
-
#input_tokens ⇒ Object
readonly
Returns the value of attribute input_tokens.
-
#jpeg_data ⇒ Object
readonly
Returns the value of attribute jpeg_data.
-
#output_tokens ⇒ Object
readonly
Returns the value of attribute output_tokens.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
Instance Method Summary collapse
-
#initialize(jpeg_data:, provider:, input_tokens: nil, output_tokens: nil) ⇒ GenerateResult
constructor
A new instance of GenerateResult.
Constructor Details
#initialize(jpeg_data:, provider:, input_tokens: nil, output_tokens: nil) ⇒ GenerateResult
Returns a new instance of GenerateResult.
143 144 145 |
# File 'app/services/image_generation/service.rb', line 143 def initialize(jpeg_data:, provider:, input_tokens: nil, output_tokens: nil) super end |
Instance Attribute Details
#input_tokens ⇒ Object (readonly)
Returns the value of attribute input_tokens
142 143 144 |
# File 'app/services/image_generation/service.rb', line 142 def input_tokens @input_tokens end |
#jpeg_data ⇒ Object (readonly)
Returns the value of attribute jpeg_data
142 143 144 |
# File 'app/services/image_generation/service.rb', line 142 def jpeg_data @jpeg_data end |
#output_tokens ⇒ Object (readonly)
Returns the value of attribute output_tokens
142 143 144 |
# File 'app/services/image_generation/service.rb', line 142 def output_tokens @output_tokens end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider
142 143 144 |
# File 'app/services/image_generation/service.rb', line 142 def provider @provider end |