Class: SolidQueueGuard::Checks::Base Private

Inherits:
Object
  • Object
show all
Defined in:
lib/solid_queue_guard/checks/base.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ Base

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Base.



15
16
17
# File 'lib/solid_queue_guard/checks/base.rb', line 15

def initialize(**options)
  @options = options
end

Class Method Details

.call(**options) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



7
8
9
# File 'lib/solid_queue_guard/checks/base.rb', line 7

def self.call(**options)
  new(**options).call
end

.check_idObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



11
12
13
# File 'lib/solid_queue_guard/checks/base.rb', line 11

def self.check_id
  name.demodulize.underscore.delete_suffix('_check')
end

Instance Method Details

#callObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/solid_queue_guard/checks/base.rb', line 19

def call
  raise NotImplementedError
end