Class: Report::CustomerPerformance::Result
- Inherits:
-
Data
- Object
- Data
- Report::CustomerPerformance::Result
- Defined in:
- app/services/report/customer_performance.rb
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
A new instance of Result.
- #success? ⇒ Boolean
Constructor Details
#initialize(success: nil, periods: [], grouped_results: nil, summaries: nil) ⇒ Result
Returns a new instance of Result.
18 |
# File 'app/services/report/customer_performance.rb', line 18 def initialize(success: nil, periods: [], grouped_results: nil, summaries: nil) = super |
Instance Attribute Details
#grouped_results ⇒ Object (readonly)
Returns the value of attribute grouped_results
17 18 19 |
# File 'app/services/report/customer_performance.rb', line 17 def grouped_results @grouped_results end |
#periods ⇒ Object (readonly)
Returns the value of attribute periods
17 18 19 |
# File 'app/services/report/customer_performance.rb', line 17 def periods @periods end |
#success ⇒ Object (readonly)
Returns the value of attribute success
17 18 19 |
# File 'app/services/report/customer_performance.rb', line 17 def success @success end |
#summaries ⇒ Object (readonly)
Returns the value of attribute summaries
17 18 19 |
# File 'app/services/report/customer_performance.rb', line 17 def summaries @summaries end |
Instance Method Details
#success? ⇒ Boolean
19 |
# File 'app/services/report/customer_performance.rb', line 19 def success? = success |