Module: SidekiqAdminEnquerer::WebApp::WebHelpers Private

Defined in:
lib/sidekiq_admin_enquerer/web_app/web_helpers.rb

Overview

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

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#side_enq__enqueue_job_pathString

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



19
20
21
# File 'lib/sidekiq_admin_enquerer/web_app/web_helpers.rb', line 19

def side_enq__enqueue_job_path
  "#{root_path}enquerer"
end

#side_enq__enqueue_path(job) ⇒ String

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:

Returns:

  • (String)

Since:

  • 0.1.0



11
12
13
# File 'lib/sidekiq_admin_enquerer/web_app/web_helpers.rb', line 11

def side_enq__enqueue_path(job)
  "#{root_path}enquerer/#{job.name}"
end

#side_enq__method_params(job_method) ⇒ String

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:

Returns:

  • (String)

Since:

  • 0.1.0



28
29
30
# File 'lib/sidekiq_admin_enquerer/web_app/web_helpers.rb', line 28

def side_enq__method_params(job_method)
  job_method.params.map(&:name).join(', ')
end

#side_enq__param_requirement(job_param) ⇒ String

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:

Returns:

  • (String)

Since:

  • 0.1.0



37
38
39
# File 'lib/sidekiq_admin_enquerer/web_app/web_helpers.rb', line 37

def side_enq__param_requirement(job_param)
  job_param.required? ? 'required' : 'optional'
end