Class: QTest::Project
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#module(opts = {}) ⇒ QTest::Module
Get a specific Module under the Project.
-
#modules ⇒ Array[QTest::Module]
Get all Releases under the Project.
-
#release(opts = {}) ⇒ QTest::Release
Get a specific Release under the Project.
-
#releases ⇒ Array[QTest::Release]
Get all Releases under the Project.
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
#id ⇒ Object
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.
26 27 28 |
# File 'lib/qtest/project.rb', line 26 def module(opts = {}) unique(QTest::Module, project: @id, id: opts[:id]) end |
#modules ⇒ Array[QTest::Module]
Get all Releases under the Project.
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.
10 11 12 |
# File 'lib/qtest/project.rb', line 10 def release(opts = {}) unique(QTest::Release, project: @id, id: opts[:id]) end |
#releases ⇒ Array[QTest::Release]
Get all Releases under the Project.
17 18 19 |
# File 'lib/qtest/project.rb', line 17 def releases all(QTest::Release, project: @id) end |