Class: Report::OpportunitiesReport::OpportunitiesReport::Result

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

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success: nil, data_opp: [], data_amazon: [], list_opps_over_5k: [], total_opportunities_report_for_primary_reps: [], won_opportunities_report_for_primary_reps: [], opportunities_report_for_local_reps: [], opportunities_report_for_tech_reps: [], opportunities_by_product_line: [], start_date: nil, end_date: nil, flag: nil) ⇒ Result

Returns a new instance of Result.



7
8
9
10
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 7

def initialize(success: nil, data_opp: [], data_amazon: [], list_opps_over_5k: [], total_opportunities_report_for_primary_reps: [], won_opportunities_report_for_primary_reps: [], opportunities_report_for_local_reps: [],
               opportunities_report_for_tech_reps: [], opportunities_by_product_line: [], start_date: nil, end_date: nil, flag: nil)
  super
end

Instance Attribute Details

#data_amazonObject (readonly)

Returns the value of attribute data_amazon

Returns:

  • (Object)

    the current value of data_amazon



5
6
7
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5

def data_amazon
  @data_amazon
end

#data_oppObject (readonly)

Returns the value of attribute data_opp

Returns:

  • (Object)

    the current value of data_opp



5
6
7
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5

def data_opp
  @data_opp
end

#end_dateObject (readonly)

Returns the value of attribute end_date

Returns:

  • (Object)

    the current value of end_date



5
6
7
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5

def end_date
  @end_date
end

#flagObject (readonly)

Returns the value of attribute flag

Returns:

  • (Object)

    the current value of flag



5
6
7
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5

def flag
  @flag
end

#list_opps_over_5kObject (readonly)

Returns the value of attribute list_opps_over_5k

Returns:

  • (Object)

    the current value of list_opps_over_5k



5
6
7
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5

def list_opps_over_5k
  @list_opps_over_5k
end

#opportunities_by_product_lineObject (readonly)

Returns the value of attribute opportunities_by_product_line

Returns:

  • (Object)

    the current value of opportunities_by_product_line



5
6
7
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5

def opportunities_by_product_line
  @opportunities_by_product_line
end

#opportunities_report_for_local_repsObject (readonly)

Returns the value of attribute opportunities_report_for_local_reps

Returns:

  • (Object)

    the current value of opportunities_report_for_local_reps



5
6
7
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5

def opportunities_report_for_local_reps
  @opportunities_report_for_local_reps
end

#opportunities_report_for_tech_repsObject (readonly)

Returns the value of attribute opportunities_report_for_tech_reps

Returns:

  • (Object)

    the current value of opportunities_report_for_tech_reps



5
6
7
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5

def opportunities_report_for_tech_reps
  @opportunities_report_for_tech_reps
end

#start_dateObject (readonly)

Returns the value of attribute start_date

Returns:

  • (Object)

    the current value of start_date



5
6
7
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5

def start_date
  @start_date
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



5
6
7
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5

def success
  @success
end

#total_opportunities_report_for_primary_repsObject (readonly)

Returns the value of attribute total_opportunities_report_for_primary_reps

Returns:

  • (Object)

    the current value of total_opportunities_report_for_primary_reps



5
6
7
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5

def total_opportunities_report_for_primary_reps
  @total_opportunities_report_for_primary_reps
end

#won_opportunities_report_for_primary_repsObject (readonly)

Returns the value of attribute won_opportunities_report_for_primary_reps

Returns:

  • (Object)

    the current value of won_opportunities_report_for_primary_reps



5
6
7
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5

def won_opportunities_report_for_primary_reps
  @won_opportunities_report_for_primary_reps
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


12
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 12

def success? = success