Class: ExceptionNotifier::RedmineNotifier
- Inherits:
-
Object
- Object
- ExceptionNotifier::RedmineNotifier
- Defined in:
- lib/exception_notifier/redmine/redmine.rb
Instance Method Summary collapse
- #call(exception, options = {}) ⇒ Object
-
#initialize(config) ⇒ RedmineNotifier
constructor
A new instance of RedmineNotifier.
Constructor Details
#initialize(config) ⇒ RedmineNotifier
Returns a new instance of RedmineNotifier.
9 10 11 |
# File 'lib/exception_notifier/redmine/redmine.rb', line 9 def initialize(config) @config = config end |
Instance Method Details
#call(exception, options = {}) ⇒ Object
13 14 15 16 17 |
# File 'lib/exception_notifier/redmine/redmine.rb', line 13 def call(exception, ={}) env = [:env] issue = compose_issue(, exception) create_issue(issue) unless issue_exist?(issue) end |