Class: PartnerService::Reports::BaseService
- Inherits:
-
Object
- Object
- PartnerService::Reports::BaseService
- Includes:
- CopperHelper
- Defined in:
- app/services/partner_service/reports/base_service.rb
Direct Known Subclasses
BranchCoversService, DineInCoversService, DineInService, PackageService, SalesAndRatingService, ServiceTypeService, SoldOutService
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#restaurants ⇒ Object
readonly
Returns the value of attribute restaurants.
Instance Method Summary collapse
- #build_reports_by_day ⇒ Object
- #build_reports_by_hour ⇒ Object
-
#initialize(params, restaurants = []) ⇒ BaseService
constructor
A new instance of BaseService.
Methods included from CopperHelper
Constructor Details
#initialize(params, restaurants = []) ⇒ BaseService
Returns a new instance of BaseService.
7 8 9 10 |
# File 'app/services/partner_service/reports/base_service.rb', line 7 def initialize(params, restaurants = []) @params = params @restaurants = restaurants end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
3 4 5 |
# File 'app/services/partner_service/reports/base_service.rb', line 3 def params @params end |
#restaurants ⇒ Object (readonly)
Returns the value of attribute restaurants.
3 4 5 |
# File 'app/services/partner_service/reports/base_service.rb', line 3 def restaurants @restaurants end |
Instance Method Details
#build_reports_by_day ⇒ Object
16 17 18 |
# File 'app/services/partner_service/reports/base_service.rb', line 16 def build_reports_by_day raise NotImplementedError, 'You must implement the `build_reports_by_day` method' end |
#build_reports_by_hour ⇒ Object
12 13 14 |
# File 'app/services/partner_service/reports/base_service.rb', line 12 def build_reports_by_hour raise NotImplementedError, 'You must implement the `build_reports_by_hour` method' end |