Class: NitroIntelligence::ImageGeneration::Config
- Inherits:
-
Object
- Object
- NitroIntelligence::ImageGeneration::Config
- Defined in:
- lib/nitro_intelligence/media/image_generation.rb
Constant Summary collapse
- DEFAULT_ASPECT_RATIO =
"1:1".freeze
- DEFAULT_RESOLUTION =
"1K".freeze
Instance Attribute Summary collapse
-
#aspect_ratio ⇒ Object
Returns the value of attribute aspect_ratio.
-
#model ⇒ Object
Returns the value of attribute model.
-
#resolution ⇒ Object
Returns the value of attribute resolution.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
17 18 19 20 21 |
# File 'lib/nitro_intelligence/media/image_generation.rb', line 17 def initialize @aspect_ratio = DEFAULT_ASPECT_RATIO @model = NitroIntelligence.model_catalog.default_image_model&.name @resolution = DEFAULT_RESOLUTION end |
Instance Attribute Details
#aspect_ratio ⇒ Object
Returns the value of attribute aspect_ratio.
15 16 17 |
# File 'lib/nitro_intelligence/media/image_generation.rb', line 15 def aspect_ratio @aspect_ratio end |
#model ⇒ Object
Returns the value of attribute model.
15 16 17 |
# File 'lib/nitro_intelligence/media/image_generation.rb', line 15 def model @model end |
#resolution ⇒ Object
Returns the value of attribute resolution.
15 16 17 |
# File 'lib/nitro_intelligence/media/image_generation.rb', line 15 def resolution @resolution end |