Class: Sidekiq::Sync::Options
- Inherits:
-
Object
- Object
- Sidekiq::Sync::Options
- Defined in:
- lib/sidekiq/sync/options.rb
Instance Attribute Summary collapse
-
#raise ⇒ Object
readonly
Returns the value of attribute raise.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Options
constructor
A new instance of Options.
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
#raise ⇒ Object (readonly)
Returns the value of attribute raise.
4 5 6 |
# File 'lib/sidekiq/sync/options.rb', line 4 def raise @raise end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
4 5 6 |
# File 'lib/sidekiq/sync/options.rb', line 4 def timeout @timeout end |