Module: QTest::REST::Project

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

Instance Method Summary collapse

Methods included from Utils

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

Instance Method Details

#project(opts = {}) ⇒ Object

GET ‘/project/:id’



7
8
9
10
# File 'lib/qtest/rest/project.rb', line 7

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

#projects(_opts = {}) ⇒ Object

GET ‘/projects’



13
14
15
16
# File 'lib/qtest/rest/project.rb', line 13

def projects(_opts = {})
  query = QueryBuilder.new.projects.build
  get(query)
end