Class: Assistant::BrainCompactor::Result
- Inherits:
-
Data
- Object
- Data
- Assistant::BrainCompactor::Result
- Defined in:
- app/services/assistant/brain_compactor.rb
Overview
Service result.
Instance Attribute Summary collapse
-
#analyzed_count ⇒ Object
readonly
Returns the value of attribute analyzed_count.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#model_id ⇒ Object
readonly
Returns the value of attribute model_id.
-
#recommendations ⇒ Object
readonly
Returns the value of attribute recommendations.
Instance Method Summary collapse
-
#initialize(recommendations: [], analyzed_count: 0, model_id: nil, error: nil) ⇒ Result
constructor
A new instance of Result.
- #success? ⇒ Boolean
Constructor Details
#initialize(recommendations: [], analyzed_count: 0, model_id: nil, error: nil) ⇒ Result
Returns a new instance of Result.
34 35 36 |
# File 'app/services/assistant/brain_compactor.rb', line 34 def initialize(recommendations: [], analyzed_count: 0, model_id: nil, error: nil) super end |
Instance Attribute Details
#analyzed_count ⇒ Object (readonly)
Returns the value of attribute analyzed_count
33 34 35 |
# File 'app/services/assistant/brain_compactor.rb', line 33 def analyzed_count @analyzed_count end |
#error ⇒ Object (readonly)
Returns the value of attribute error
33 34 35 |
# File 'app/services/assistant/brain_compactor.rb', line 33 def error @error end |
#model_id ⇒ Object (readonly)
Returns the value of attribute model_id
33 34 35 |
# File 'app/services/assistant/brain_compactor.rb', line 33 def model_id @model_id end |
#recommendations ⇒ Object (readonly)
Returns the value of attribute recommendations
33 34 35 |
# File 'app/services/assistant/brain_compactor.rb', line 33 def recommendations @recommendations end |
Instance Method Details
#success? ⇒ Boolean
38 |
# File 'app/services/assistant/brain_compactor.rb', line 38 def success? = error.nil? |