Class: AdLint::MessageClass
- Inherits:
-
Object
- Object
- AdLint::MessageClass
- Defined in:
- lib/adlint/message.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#severity ⇒ Object
readonly
Returns the value of attribute severity.
Instance Method Summary collapse
-
#initialize(class_str) ⇒ MessageClass
constructor
A new instance of MessageClass.
Constructor Details
#initialize(class_str) ⇒ MessageClass
Returns a new instance of MessageClass.
338 339 340 341 |
# File 'lib/adlint/message.rb', line 338 def initialize(class_str) @category, @severity = class_str.split(":").map { |str| str.to_default_external } end |
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category.
343 344 345 |
# File 'lib/adlint/message.rb', line 343 def category @category end |
#severity ⇒ Object (readonly)
Returns the value of attribute severity.
344 345 346 |
# File 'lib/adlint/message.rb', line 344 def severity @severity end |