Exception: SimpleWorker::RequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/simple_worker/api.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg, options = {}) ⇒ RequestError

Returns a new instance of RequestError.



7
8
9
10
# File 'lib/simple_worker/api.rb', line 7

def initialize(msg, options={})
  super(msg)
  @options = options
end

Instance Method Details

#statusObject



12
13
14
# File 'lib/simple_worker/api.rb', line 12

def status
  @options[:status]
end