Module: ZephyrRuby::Client::Resource::Priorities
- Included in:
- ZephyrRuby::Client
- Defined in:
- lib/zephyr_ruby/resource/priorities.rb
Overview
Operations related to Priorities
Instance Method Summary collapse
- #create_priority(body) ⇒ Object
- #get_priority(priority_id) ⇒ Object
- #list_priorities(params = {}) ⇒ Object
- #update_priority(priority_id, params = {}) ⇒ Object
Instance Method Details
#create_priority(body) ⇒ Object
12 13 14 |
# File 'lib/zephyr_ruby/resource/priorities.rb', line 12 def create_priority(body) post '/priorities', body end |
#get_priority(priority_id) ⇒ Object
16 17 18 |
# File 'lib/zephyr_ruby/resource/priorities.rb', line 16 def get_priority(priority_id) get "/priorities/#{priority_id}" end |
#list_priorities(params = {}) ⇒ Object
8 9 10 |
# File 'lib/zephyr_ruby/resource/priorities.rb', line 8 def list_priorities(params = {}) get '/priorities', params end |
#update_priority(priority_id, params = {}) ⇒ Object
20 21 22 |
# File 'lib/zephyr_ruby/resource/priorities.rb', line 20 def update_priority(priority_id, params = {}) put "/priorities/#{priority_id}", params end |