Class: PartnerService::Reports::BaseService

Inherits:
Object
  • Object
show all
Includes:
CopperHelper
Defined in:
app/services/partner_service/reports/base_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from CopperHelper

#copper_sort_restaurants

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

#paramsObject (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

#restaurantsObject (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_dayObject

Raises:

  • (NotImplementedError)


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_hourObject

Raises:

  • (NotImplementedError)


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