Class: Inferno::Entities::TestKit
- Inherits:
-
Object
- Object
- Inferno::Entities::TestKit
- Defined in:
- lib/inferno/entities/test_kit.rb
Overview
Class Method Summary collapse
-
.authors(new_authors = nil) ⇒ Array<String>
Set/get the list of authors for the test kit.
-
.description(new_description = nil) ⇒ String
Set/get the description for the test kit.
-
.id(new_id = nil) ⇒ Symbol, String
Set/get the id for the test kit.
-
.last_updated(new_last_updated = nil) ⇒ String
Set/get the last updated date for the test kit.
-
.maturity(new_maturity = nil) ⇒ String
Set/get the maturity level for the test kit.
-
.options ⇒ Hash{Symbol,String=>Array<Inferno::DSL::SuiteOption>}
Get the options for the suites in the test kit.
-
.repo(new_repo = nil) ⇒ String
Set/get the code repository url for the test kit.
-
.suite_ids(new_ids = nil) ⇒ Array<Symbol,String>
Set/get the suite ids for the test kit.
-
.suites ⇒ Array<Inferno::Entities::TestSuite>
Get the suites whose ids are defined in
suite_ids
. -
.tags(new_tags = nil) ⇒ Array<String>
Set/get the tags for the test kit.
-
.title(new_title = nil) ⇒ String
Set/get the title for the test kit.
-
.version(new_version = nil) ⇒ String
Set/get the version for the test kit.
Class Method Details
.authors(new_authors = nil) ⇒ Array<String>
Set/get the list of authors for the test kit
127 128 129 130 131 |
# File 'lib/inferno/entities/test_kit.rb', line 127 def ( = nil) return @authors if .nil? @authors = end |
.description(new_description = nil) ⇒ String
Set/get the description for the test kit
57 58 59 60 61 |
# File 'lib/inferno/entities/test_kit.rb', line 57 def description(new_description = nil) return @description if new_description.nil? @description = new_description end |
.id(new_id = nil) ⇒ Symbol, String
Set/get the id for the test kit
37 38 39 40 41 |
# File 'lib/inferno/entities/test_kit.rb', line 37 def id(new_id = nil) return @id if new_id.nil? @id = new_id end |
.last_updated(new_last_updated = nil) ⇒ String
Set/get the last updated date for the test kit
77 78 79 80 81 |
# File 'lib/inferno/entities/test_kit.rb', line 77 def last_updated(new_last_updated = nil) return @last_updated if new_last_updated.nil? @last_updated = new_last_updated end |
.maturity(new_maturity = nil) ⇒ String
Set/get the maturity level for the test kit
97 98 99 100 101 |
# File 'lib/inferno/entities/test_kit.rb', line 97 def maturity(new_maturity = nil) return @maturity if new_maturity.nil? @maturity = new_maturity end |
.options ⇒ Hash{Symbol,String=>Array<Inferno::DSL::SuiteOption>}
Get the options for the suites in the test kit
146 147 148 149 150 |
# File 'lib/inferno/entities/test_kit.rb', line 146 def return @options if @options.present? @options = suites.each_with_object({}) { |suite, hash| hash[suite.id] = suite. } end |
.repo(new_repo = nil) ⇒ String
Set/get the code repository url for the test kit
117 118 119 120 121 |
# File 'lib/inferno/entities/test_kit.rb', line 117 def repo(new_repo = nil) return @repo if new_repo.nil? @repo = new_repo end |
.suite_ids(new_ids = nil) ⇒ Array<Symbol,String>
Set/get the suite ids for the test kit
107 108 109 110 111 |
# File 'lib/inferno/entities/test_kit.rb', line 107 def suite_ids(new_ids = nil) return @suite_ids || [] if new_ids.nil? @suite_ids = new_ids end |
.suites ⇒ Array<Inferno::Entities::TestSuite>
Get the suites whose ids are defined in suite_ids
136 137 138 139 140 141 |
# File 'lib/inferno/entities/test_kit.rb', line 136 def suites return @suites if @suites.present? repo = Inferno::Repositories::TestSuites.new @suites = suite_ids.map { |id| repo.find(id) } end |
.tags(new_tags = nil) ⇒ Array<String>
Set/get the tags for the test kit
67 68 69 70 71 |
# File 'lib/inferno/entities/test_kit.rb', line 67 def ( = nil) return @tags if .nil? @tags = end |
.title(new_title = nil) ⇒ String
Set/get the title for the test kit
47 48 49 50 51 |
# File 'lib/inferno/entities/test_kit.rb', line 47 def title(new_title = nil) return @title if new_title.nil? @title = new_title end |
.version(new_version = nil) ⇒ String
Set/get the version for the test kit
87 88 89 90 91 |
# File 'lib/inferno/entities/test_kit.rb', line 87 def version(new_version = nil) return @version if new_version.nil? @version = new_version end |