Module: OnlyofficeBugzillaHelper::UpdateBug
- Included in:
- BugzillaHelper
- Defined in:
- lib/onlyoffice_bugzilla_helper/update_bug.rb
Overview
Method to updating bug data
Instance Method Summary collapse
-
#update_bug(bug_id, params = {}) ⇒ Net::HTTPResponse
Update bug info.
Instance Method Details
#update_bug(bug_id, params = {}) ⇒ Net::HTTPResponse
Update bug info
10 11 12 13 14 15 |
# File 'lib/onlyoffice_bugzilla_helper/update_bug.rb', line 10 def update_bug(bug_id, params = {}) req = Net::HTTP::Put.new(bug_url(bug_id)) req.body = params.to_json req.add_field('Content-Type', 'text/plain') perform_request(req) end |