Module: QTest::REST::Release

Includes:
Utils
Included in:
API
Defined in:
lib/qtest/rest/release.rb

Instance Method Summary collapse

Methods included from Utils

#decode_response_body, #delete, #get, #handle_response, #post, #put

Instance Method Details

#release(opts = {}) ⇒ Object

GET ‘/projects/:project/releases/:id’



7
8
9
10
11
12
13
# File 'lib/qtest/rest/release.rb', line 7

def release(opts = {})
  query = QueryBuilder.new
                      .project(opts[:project])
                      .release(opts[:id])
                      .build
  get(query)
end

#releases(opts = {}) ⇒ Object

GET ‘/projects/:project/releases’



16
17
18
19
20
21
22
# File 'lib/qtest/rest/release.rb', line 16

def releases(opts = {})
  query = QueryBuilder.new
                      .project(opts[:project])
                      .releases
                      .build
  get(query)
end