Module: RTrail::Methods::Update

Included in:
Case, Plan, Project, Run, Section, Suite
Defined in:
lib/rtrail/methods.rb

Overview

module Get

Instance Method Summary collapse

Instance Method Details

#update(fields = {}) ⇒ Object

Update TestRail with local changes to this Entity. Wraps ‘POST update_<entity>/<id>`

Parameters:

  • fields (Hash) (defaults to: {})

    Individual fields to update. If omitted, the data currently stored in the local Entity instance is posted.



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