Class: Report::CustomerPerformance::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/report/customer_performance.rb

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success: nil, periods: [], grouped_results: nil, summaries: nil) ⇒ Result

Returns a new instance of Result.



21
# File 'app/services/report/customer_performance.rb', line 21

def initialize(success: nil, periods: [], grouped_results: nil, summaries: nil) = super

Instance Attribute Details

#grouped_resultsObject (readonly)

Returns the value of attribute grouped_results

Returns:

  • (Object)

    the current value of grouped_results



20
21
22
# File 'app/services/report/customer_performance.rb', line 20

def grouped_results
  @grouped_results
end

#periodsObject (readonly)

Returns the value of attribute periods

Returns:

  • (Object)

    the current value of periods



20
21
22
# File 'app/services/report/customer_performance.rb', line 20

def periods
  @periods
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



20
21
22
# File 'app/services/report/customer_performance.rb', line 20

def success
  @success
end

#summariesObject (readonly)

Returns the value of attribute summaries

Returns:

  • (Object)

    the current value of summaries



20
21
22
# File 'app/services/report/customer_performance.rb', line 20

def summaries
  @summaries
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


22
# File 'app/services/report/customer_performance.rb', line 22

def success? = success