Class: ExceptionNotifier::RedmineNotifier
- Inherits:
-
Object
- Object
- ExceptionNotifier::RedmineNotifier
- Defined in:
- lib/exception_notifier/redmine/redmine.rb
Defined Under Namespace
Modules: Redmine
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.
16 17 18 |
# File 'lib/exception_notifier/redmine/redmine.rb', line 16 def initialize(config) @config = config end |
Instance Method Details
#call(exception, options = {}) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/exception_notifier/redmine/redmine.rb', line 20 def call(exception, ={}) unless [:env].nil? compose_data([:env], exception, ) issue = compose_issue create_issue(issue) unless issue_exist?(issue) end end |