Class: NitroIntelligence::ImageModel
- Defined in:
- lib/nitro_intelligence/models/model.rb
Instance Attribute Summary collapse
-
#aspect_ratios ⇒ Object
readonly
Returns the value of attribute aspect_ratios.
-
#resolutions ⇒ Object
readonly
Returns the value of attribute resolutions.
Attributes inherited from Model
Instance Method Summary collapse
-
#initialize(name:, omit_output_fields: [], aspect_ratios: [], resolutions: []) ⇒ ImageModel
constructor
A new instance of ImageModel.
Constructor Details
#initialize(name:, omit_output_fields: [], aspect_ratios: [], resolutions: []) ⇒ ImageModel
Returns a new instance of ImageModel.
16 17 18 19 20 |
# File 'lib/nitro_intelligence/models/model.rb', line 16 def initialize(name:, omit_output_fields: [], aspect_ratios: [], resolutions: [], **) super @aspect_ratios = aspect_ratios @resolutions = resolutions end |
Instance Attribute Details
#aspect_ratios ⇒ Object (readonly)
Returns the value of attribute aspect_ratios.
14 15 16 |
# File 'lib/nitro_intelligence/models/model.rb', line 14 def aspect_ratios @aspect_ratios end |
#resolutions ⇒ Object (readonly)
Returns the value of attribute resolutions.
14 15 16 |
# File 'lib/nitro_intelligence/models/model.rb', line 14 def resolutions @resolutions end |