Sha256: 0bd9ff36fa5c4e3973fbf91434cce95aadcffc2793481b6044f50999191f076b

Contents?: true

Size: 905 Bytes

Versions: 1

Compression:

Stored size: 905 Bytes

Contents

module QTest
  module REST
    module Module
      include QTest::REST::Utils

      # GET '/projects/:project/modules/:id?expand=?'
      def module(opts = {})
        query = QueryBuilder.new
                            .project(opts[:project])
                            .module(opts[:id])
                            .param('expand', opts[:expand])
                            .build
        get(query)
      end

      # GET '/projects/:project/modules?parentId=?&expand=?&search=?'
      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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qtest-ruby-0.1.0 lib/qtest/rest/module.rb