Class: PostHog::NoopWorker

Inherits:
Object
  • Object
show all
Defined in:
lib/posthog/noop_worker.rb

Instance Method Summary collapse

Constructor Details

#initialize(queue) ⇒ NoopWorker

Returns a new instance of NoopWorker.



6
7
8
# File 'lib/posthog/noop_worker.rb', line 6

def initialize(queue)
  @queue = queue
end

Instance Method Details

#is_requesting?Boolean

TODO: Rename to ‘requesting?` in future version

Returns:

  • (Boolean)


15
16
17
# File 'lib/posthog/noop_worker.rb', line 15

def is_requesting? # rubocop:disable Naming/PredicateName
  false
end

#runObject



10
11
12
# File 'lib/posthog/noop_worker.rb', line 10

def run
  # Does nothing
end