Class: AdLint::MessageClass

Inherits:
Object
  • Object
show all
Defined in:
lib/adlint/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#categoryObject (readonly)

Returns the value of attribute category.



343
344
345
# File 'lib/adlint/message.rb', line 343

def category
  @category
end

#severityObject (readonly)

Returns the value of attribute severity.



344
345
346
# File 'lib/adlint/message.rb', line 344

def severity
  @severity
end