Class: Report::OpportunitiesVsLogistics::OpportunitiesVsLogisticsCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Report::OpportunitiesVsLogistics::OpportunitiesVsLogisticsCommand
- Defined in:
- app/services/report/opportunities_vs_logistics/opportunities_vs_logistics_command.rb
Constant Summary collapse
- PRODUCT_LINE_OPTIONS =
[["Floor Heating",1],["Snow Melting",2],["Roof & Gutter Deicing",3],["Pipe Freeze Protection",4]]
- DISPLAY_OPTIONS =
[["Weekly","week"],["Monthly","month"],["Quarterly","quarter"]]
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
13 14 15 16 |
# File 'app/services/report/opportunities_vs_logistics/opportunities_vs_logistics_command.rb', line 13 def execute return unless valid? @result = Report::OpportunitiesVsLogistics::OpportunitiesVsLogistics.results(attributes) end |
#success? ⇒ Boolean
18 19 20 |
# File 'app/services/report/opportunities_vs_logistics/opportunities_vs_logistics_command.rb', line 18 def success? valid? && @result.success? end |