Class: DailyFocus::ReviewDataBuilder::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/daily_focus/review_data_builder.rb

Overview

Fixed contract for the review page (controller assigns each field to an ivar).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rep_rows: nil, processing_count: nil, pending_count: nil, approved_count: nil, missing_count: nil, briefings_recorded_count: nil, total_reps_count: nil) ⇒ Result

Returns a new instance of Result.



19
20
21
22
23
24
25
26
27
# File 'app/services/daily_focus/review_data_builder.rb', line 19

def initialize(
  rep_rows: nil,
  processing_count: nil,
  pending_count: nil,
  approved_count: nil,
  missing_count: nil,
  briefings_recorded_count: nil,
  total_reps_count: nil
) = super

Instance Attribute Details

#approved_countObject (readonly)

Returns the value of attribute approved_count

Returns:

  • (Object)

    the current value of approved_count



10
11
12
# File 'app/services/daily_focus/review_data_builder.rb', line 10

def approved_count
  @approved_count
end

#briefings_recorded_countObject (readonly)

Returns the value of attribute briefings_recorded_count

Returns:

  • (Object)

    the current value of briefings_recorded_count



10
11
12
# File 'app/services/daily_focus/review_data_builder.rb', line 10

def briefings_recorded_count
  @briefings_recorded_count
end

#missing_countObject (readonly)

Returns the value of attribute missing_count

Returns:

  • (Object)

    the current value of missing_count



10
11
12
# File 'app/services/daily_focus/review_data_builder.rb', line 10

def missing_count
  @missing_count
end

#pending_countObject (readonly)

Returns the value of attribute pending_count

Returns:

  • (Object)

    the current value of pending_count



10
11
12
# File 'app/services/daily_focus/review_data_builder.rb', line 10

def pending_count
  @pending_count
end

#processing_countObject (readonly)

Returns the value of attribute processing_count

Returns:

  • (Object)

    the current value of processing_count



10
11
12
# File 'app/services/daily_focus/review_data_builder.rb', line 10

def processing_count
  @processing_count
end

#rep_rowsObject (readonly)

Returns the value of attribute rep_rows

Returns:

  • (Object)

    the current value of rep_rows



10
11
12
# File 'app/services/daily_focus/review_data_builder.rb', line 10

def rep_rows
  @rep_rows
end

#total_reps_countObject (readonly)

Returns the value of attribute total_reps_count

Returns:

  • (Object)

    the current value of total_reps_count



10
11
12
# File 'app/services/daily_focus/review_data_builder.rb', line 10

def total_reps_count
  @total_reps_count
end