Class: Sidekiq::Sync::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq/sync/options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Options

Returns a new instance of Options.



5
6
7
8
9
10
11
12
# File 'lib/sidekiq/sync/options.rb', line 5

def initialize(opts={})
  @timeout = opts[:timeout] || 0
  @raise = if opts[:raise] == false
    false
  else
    true
  end
end

Instance Attribute Details

#raiseObject (readonly)

Returns the value of attribute raise.



4
5
6
# File 'lib/sidekiq/sync/options.rb', line 4

def raise
  @raise
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



4
5
6
# File 'lib/sidekiq/sync/options.rb', line 4

def timeout
  @timeout
end