Module: QTest::REST::Module
Instance Method Summary collapse
-
#module(opts = {}) ⇒ Object
GET ‘/projects/:project/modules/:id?expand=?’.
-
#modules(opts = {}) ⇒ Object
GET ‘/projects/:project/modules?parentId=?&expand=?&search=?’.
Methods included from Utils
#decode_response_body, #delete, #get, #handle_response, #post, #put
Instance Method Details
#module(opts = {}) ⇒ Object
GET ‘/projects/:project/modules/:id?expand=?’
7 8 9 10 11 12 13 14 |
# File 'lib/qtest/rest/module.rb', line 7 def module(opts = {}) query = QueryBuilder.new .project(opts[:project]) .module(opts[:id]) .param('expand', opts[:expand]) .build get(query) end |
#modules(opts = {}) ⇒ Object
GET ‘/projects/:project/modules?parentId=?&expand=?&search=?’
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/qtest/rest/module.rb', line 17 def modules(opts = {}) query = QueryBuilder.new .project(opts[:project]) .modules .param('parentId', opts[:module]) .param('expand', opts[:expand]) .param('search', opts[:search]) .build get(query) end |