Sha256: 872014259cf6bfe972e2794ae359943c2c60dbd3347cad13d8e1ad34553e7370

Contents?: true

Size: 560 Bytes

Versions: 6

Compression:

Stored size: 560 Bytes

Contents

# frozen_string_literal: true

module ZephyrRuby
  class Client
    module Resource
      # Operations related to Priorities
      module Priorities
        def list_priorities(params = {})
          get '/priorities', params
        end

        def create_priority(body)
          post '/priorities', body
        end

        def get_priority(priority_id)
          get "/priorities/#{priority_id}"
        end

        def update_priority(priority_id, params = {})
          put "/priorities/#{priority_id}", params
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zephyr_ruby-0.5.1 lib/zephyr_ruby/resource/priorities.rb
zephyr_ruby-0.5.0 lib/zephyr_ruby/resource/priorities.rb
zephyr_ruby-0.4.0 lib/zephyr_ruby/resource/priorities.rb
zephyr_ruby-0.3.0 lib/zephyr_ruby/resource/priorities.rb
zephyr_ruby-0.2.0 lib/zephyr_ruby/resource/priorities.rb
zephyr_ruby-0.1.0 lib/zephyr_ruby/resource/priorities.rb