It's hard to see where the list of options ends and the actual init starts.  To break up long subroutine definitions, try this:

```ruby
def initialize(jobRunPattern=/Running job: (job_\w*$)/,
               failurePattern=/Job\sjob_\d+_\d+\sfailed with state FAILED due to:\s*(.*$)/)
  ...snip...
end
```