Sha256: fb91892d1ef9a1aac2be6df7fa23c49a304e4ddbcb4e3ebef72f3c70a632df92

Contents?: true

Size: 632 Bytes

Versions: 1

Compression:

Stored size: 632 Bytes

Contents

module QTest
  module REST
    module Release
      include QTest::REST::Utils

      # GET '/projects/:project/releases/:id'
      def release(opts = {})
        query = QueryBuilder.new
                            .project(opts[:project])
                            .release(opts[:id])
                            .build
        get(query)
      end

      # GET '/projects/:project/releases'
      def releases(opts = {})
        query = QueryBuilder.new
                            .project(opts[:project])
                            .releases
                            .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/release.rb