Class: Allure::Category
- Defined in:
- lib/allure_ruby_commons/model/category.rb
Overview
Defects category
Instance Attribute Summary collapse
-
#matched_statuses ⇒ Object
readonly
Returns the value of attribute matched_statuses.
-
#message_regex ⇒ Object
readonly
Returns the value of attribute message_regex.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#trace_regex ⇒ Object
readonly
Returns the value of attribute trace_regex.
Instance Method Summary collapse
-
#initialize(name:, matched_statuses: nil, message_regex: nil, trace_regex: nil) ⇒ Category
constructor
A new instance of Category.
Methods inherited from JSONable
Constructor Details
#initialize(name:, matched_statuses: nil, message_regex: nil, trace_regex: nil) ⇒ Category
Returns a new instance of Category.
10 11 12 13 14 15 16 17 |
# File 'lib/allure_ruby_commons/model/category.rb', line 10 def initialize(name:, matched_statuses: nil, message_regex: nil, trace_regex: nil) super() @name = name @matched_statuses = matched_statuses @message_regex = @trace_regex = trace_regex end |
Instance Attribute Details
#matched_statuses ⇒ Object (readonly)
Returns the value of attribute matched_statuses.
19 20 21 |
# File 'lib/allure_ruby_commons/model/category.rb', line 19 def matched_statuses @matched_statuses end |
#message_regex ⇒ Object (readonly)
Returns the value of attribute message_regex.
19 20 21 |
# File 'lib/allure_ruby_commons/model/category.rb', line 19 def @message_regex end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
19 20 21 |
# File 'lib/allure_ruby_commons/model/category.rb', line 19 def name @name end |
#trace_regex ⇒ Object (readonly)
Returns the value of attribute trace_regex.
19 20 21 |
# File 'lib/allure_ruby_commons/model/category.rb', line 19 def trace_regex @trace_regex end |