Class: Entitlements::Auditor::Base

Inherits:
Object
  • Object
show all
Includes:
Contracts::Core
Defined in:
lib/entitlements.rb,
lib/entitlements/auditor/base.rb

Defined Under Namespace

Classes: CustomLogger

Constant Summary collapse

C =
::Contracts

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logger, config) ⇒ Base

Returns a new instance of Base.



21
22
23
24
25
26
# File 'lib/entitlements/auditor/base.rb', line 21

def initialize(logger, config)
  @logger = logger
  @description = config["description"] || self.class.to_s
  @provider_id = config["provider_id"] || self.class.to_s.split("::").last
  @config = config
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



11
12
13
# File 'lib/entitlements/auditor/base.rb', line 11

def description
  @description
end

#provider_idObject (readonly)

Returns the value of attribute provider_id.



11
12
13
# File 'lib/entitlements/auditor/base.rb', line 11

def provider_id
  @provider_id
end

Instance Method Details

#commit(actions:, successful_actions:, provider_exception:) ⇒ Object



54
55
56
57
58
# File 'lib/entitlements/auditor/base.rb', line 54

def commit(actions:, successful_actions:, provider_exception:)
  # :nocov:
  nil
  # :nocov:
end

#setupObject



35
36
37
38
39
# File 'lib/entitlements/auditor/base.rb', line 35

def setup
  # :nocov:
  nil
  # :nocov:
end