Class: Report::CustomerPerformance::Result

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

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.



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_resultsObject (readonly)

Returns the value of attribute grouped_results

Returns:

  • (Object)

    the current value of grouped_results



17
18
19
# File 'app/services/report/customer_performance.rb', line 17

def grouped_results
  @grouped_results
end

#periodsObject (readonly)

Returns the value of attribute periods

Returns:

  • (Object)

    the current value of periods



17
18
19
# File 'app/services/report/customer_performance.rb', line 17

def periods
  @periods
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



17
18
19
# File 'app/services/report/customer_performance.rb', line 17

def success
  @success
end

#summariesObject (readonly)

Returns the value of attribute summaries

Returns:

  • (Object)

    the current value of summaries



17
18
19
# File 'app/services/report/customer_performance.rb', line 17

def summaries
  @summaries
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


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

def success? = success