Class: Report::CustomerPerformance::Result
- Inherits:
-
Data
- Object
- Data
- Report::CustomerPerformance::Result
- Defined in:
- app/services/report/customer_performance.rb
Overview
Service object: result.
Instance Attribute Summary collapse
-
#grouped_results ⇒ Object
readonly
Returns the value of attribute grouped_results.
-
#periods ⇒ Object
readonly
Returns the value of attribute periods.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
-
#summaries ⇒ Object
readonly
Returns the value of attribute summaries.
Instance Method Summary collapse
-
#initialize(success: nil, periods: [], grouped_results: nil, summaries: nil) ⇒ Result
constructor
Initialize a new instance.
-
#success? ⇒ Boolean
Whether the command validated and ran successfully.
Constructor Details
#initialize(success: nil, periods: [], grouped_results: nil, summaries: nil) ⇒ Result
Initialize a new instance.
26 27 28 |
# File 'app/services/report/customer_performance.rb', line 26 def initialize(success: nil, periods: [], grouped_results: nil, summaries: nil) = super # Whether the command validated and ran successfully. # @return [Boolean] |
Instance Attribute Details
#grouped_results ⇒ Object (readonly)
Returns the value of attribute grouped_results
20 21 22 |
# File 'app/services/report/customer_performance.rb', line 20 def grouped_results @grouped_results end |
#periods ⇒ Object (readonly)
Returns the value of attribute periods
20 21 22 |
# File 'app/services/report/customer_performance.rb', line 20 def periods @periods end |
#success ⇒ Object (readonly)
Returns the value of attribute success
20 21 22 |
# File 'app/services/report/customer_performance.rb', line 20 def success @success end |
#summaries ⇒ Object (readonly)
Returns the value of attribute summaries
20 21 22 |
# File 'app/services/report/customer_performance.rb', line 20 def summaries @summaries end |
Instance Method Details
#success? ⇒ Boolean
Whether the command validated and ran successfully.
29 |
# File 'app/services/report/customer_performance.rb', line 29 def success? = success |