Class: ShopifyCLI::Services::ReportingService

Inherits:
BaseService
  • Object
show all
Defined in:
lib/shopify_cli/services/reporting_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseService

call

Constructor Details

#initialize(enable:) ⇒ ReportingService

Returns a new instance of ReportingService.



6
7
8
9
# File 'lib/shopify_cli/services/reporting_service.rb', line 6

def initialize(enable:)
  @enable = enable
  super()
end

Instance Attribute Details

#enableObject (readonly)

Returns the value of attribute enable.



4
5
6
# File 'lib/shopify_cli/services/reporting_service.rb', line 4

def enable
  @enable
end

Instance Method Details

#callObject



11
12
13
# File 'lib/shopify_cli/services/reporting_service.rb', line 11

def call
  ReportingConfigurationController.enable_reporting(enable)
end