Class: Report::OpportunitiesReport::OpportunitiesReport::Result
- Inherits:
-
Data
- Object
- Data
- Report::OpportunitiesReport::OpportunitiesReport::Result
- Defined in:
- app/services/report/opportunities_report/opportunities_report.rb
Overview
Service object: result.
Instance Attribute Summary collapse
-
#data_amazon ⇒ Object
readonly
Returns the value of attribute data_amazon.
-
#data_opp ⇒ Object
readonly
Returns the value of attribute data_opp.
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#flag ⇒ Object
readonly
Returns the value of attribute flag.
-
#list_opps_over_5k ⇒ Object
readonly
Returns the value of attribute list_opps_over_5k.
-
#opportunities_by_product_line ⇒ Object
readonly
Returns the value of attribute opportunities_by_product_line.
-
#opportunities_report_for_local_reps ⇒ Object
readonly
Returns the value of attribute opportunities_report_for_local_reps.
-
#opportunities_report_for_tech_reps ⇒ Object
readonly
Returns the value of attribute opportunities_report_for_tech_reps.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
-
#total_opportunities_report_for_primary_reps ⇒ Object
readonly
Returns the value of attribute total_opportunities_report_for_primary_reps.
-
#won_opportunities_report_for_primary_reps ⇒ Object
readonly
Returns the value of attribute won_opportunities_report_for_primary_reps.
Instance Method Summary collapse
-
#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
constructor
A new instance of Result.
- #success? ⇒ Boolean
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_amazon ⇒ Object (readonly)
Returns the value of attribute data_amazon
5 6 7 |
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5 def data_amazon @data_amazon end |
#data_opp ⇒ Object (readonly)
Returns the value of attribute data_opp
5 6 7 |
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5 def data_opp @data_opp end |
#end_date ⇒ Object (readonly)
Returns the value of attribute end_date
5 6 7 |
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5 def end_date @end_date end |
#flag ⇒ Object (readonly)
Returns the value of attribute flag
5 6 7 |
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5 def flag @flag end |
#list_opps_over_5k ⇒ Object (readonly)
Returns the value of attribute 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_line ⇒ Object (readonly)
Returns the value of attribute 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_reps ⇒ Object (readonly)
Returns the value of attribute 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_reps ⇒ Object (readonly)
Returns the value of attribute 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_date ⇒ Object (readonly)
Returns the value of attribute start_date
5 6 7 |
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5 def start_date @start_date end |
#success ⇒ Object (readonly)
Returns the value of attribute success
5 6 7 |
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 5 def success @success end |
#total_opportunities_report_for_primary_reps ⇒ Object (readonly)
Returns the value of attribute 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_reps ⇒ Object (readonly)
Returns the value of attribute 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
12 |
# File 'app/services/report/opportunities_report/opportunities_report.rb', line 12 def success? = success |