Class: SidekiqAdminEnquerer::WebApp::JobWrapper Private

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq_admin_enquerer/web_app/job_wrapper.rb

Overview

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.

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(job) ⇒ void

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.

Parameters:

  • job (Class<ActiveJob::Base>, Class<Sidekiq::Worker>)

Since:

  • 0.1.0



17
18
19
20
# File 'lib/sidekiq_admin_enquerer/web_app/job_wrapper.rb', line 17

def initialize(job)
  @job = job
  @methods = SidekiqAdminEnquerer::WebApp::JobMethodWrapper.extract_methods_from(job)
end

Instance Attribute Details

#methodsArray<SidekiqAdminEnquerer::WebApp::JobMethodWrapper> (readonly)

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:

Since:

  • 0.1.0



10
11
12
# File 'lib/sidekiq_admin_enquerer/web_app/job_wrapper.rb', line 10

def methods
  @methods
end

Instance Method Details

#nameString

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:

  • (String)

Since:

  • 0.1.0



26
27
28
# File 'lib/sidekiq_admin_enquerer/web_app/job_wrapper.rb', line 26

def name
  job.name
end