Class: Entitlements::Auditor::Base
- Inherits:
-
Object
- Object
- Entitlements::Auditor::Base
- 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
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#provider_id ⇒ Object
readonly
Returns the value of attribute provider_id.
Instance Method Summary collapse
- #commit(actions:, successful_actions:, provider_exception:) ⇒ Object
-
#initialize(logger, config) ⇒ Base
constructor
A new instance of Base.
- #setup ⇒ Object
Methods included from Contracts::Core
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
11 12 13 |
# File 'lib/entitlements/auditor/base.rb', line 11 def description @description end |
#provider_id ⇒ Object (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 |
#setup ⇒ Object
35 36 37 38 39 |
# File 'lib/entitlements/auditor/base.rb', line 35 def setup # :nocov: nil # :nocov: end |