Module: RTrail::Methods::Update
Overview
module Get
Instance Method Summary collapse
-
#update(fields = {}) ⇒ Object
Update TestRail with local changes to this Entity.
Instance Method Details
#update(fields = {}) ⇒ Object
Update TestRail with local changes to this Entity. Wraps ‘POST update_<entity>/<id>`
29 30 31 32 |
# File 'lib/rtrail/methods.rb', line 29 def update(fields={}) fields = @data.merge(fields) client.post("update_#{self.class.basename}/#{self.id}", fields) end |