Module: Sidekiq::Portal::GlobalInterface::ClassMethods Private

Defined in:
lib/portal/global_interface.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

#configSidekiq::Portal::Config

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.

Since:

  • 0.1.0



46
47
48
# File 'lib/portal/global_interface.rb', line 46

def config
  global_instance.config
end

#configure(&configuration) ⇒ void

This method returns an undefined value.

Since:

  • 0.1.0



38
39
40
# File 'lib/portal/global_interface.rb', line 38

def configure(&configuration)
  global_instance.configure(&configuration)
end

#global_instanceSidekiq::Portal Also known as: global

Since:

  • 0.1.0



26
27
28
29
30
# File 'lib/portal/global_interface.rb', line 26

def global_instance
  @global_instance_lock.synchronize do
    @global_instance ||= Sidekiq::Portal.new
  end
end

#setup!(&configuration) ⇒ void Also known as: reload!

This method returns an undefined value.

Since:

  • 0.1.0



55
56
57
# File 'lib/portal/global_interface.rb', line 55

def setup!(&configuration)
  global_instance.setup!(&configuration)
end