Class: QTest::Project

Inherits:
Base
  • Object
show all
Defined in:
lib/qtest/project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#all, #create, find_by, #initialize, method_missing, #move, #unique

Constructor Details

This class inherits a constructor from QTest::Base

Instance Attribute Details

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/qtest/project.rb', line 3

def id
  @id
end

Instance Method Details

#module(opts = {}) ⇒ QTest::Module

Get a specific Module under the Project.

Parameters:

  • opts (Hash) (defaults to: {})
  • id (Hash)

    a customizable set of options

Returns:



26
27
28
# File 'lib/qtest/project.rb', line 26

def module(opts = {})
  unique(QTest::Module, project: @id, id: opts[:id])
end

#modulesArray[QTest::Module]

Get all Releases under the Project.

Returns:



33
34
35
# File 'lib/qtest/project.rb', line 33

def modules
  all(QTest::Module, project: @id)
end

#release(opts = {}) ⇒ QTest::Release

Get a specific Release under the Project.

Parameters:

  • opts (Hash) (defaults to: {})
  • id (Hash)

    a customizable set of options

Returns:



10
11
12
# File 'lib/qtest/project.rb', line 10

def release(opts = {})
  unique(QTest::Release, project: @id, id: opts[:id])
end

#releasesArray[QTest::Release]

Get all Releases under the Project.

Returns:



17
18
19
# File 'lib/qtest/project.rb', line 17

def releases
  all(QTest::Release, project: @id)
end