Class: Headhunter::HtmlValidator::Response::Error
- Inherits:
-
Object
- Object
- Headhunter::HtmlValidator::Response::Error
- Defined in:
- lib/headhunter/html_validator.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(line, message, details = {}) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(line, message, details = {}) ⇒ Error
Returns a new instance of Error.
89 90 91 92 93 |
# File 'lib/headhunter/html_validator.rb', line 89 def initialize(line, , details = {}) @line = line = @details = details end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
87 88 89 |
# File 'lib/headhunter/html_validator.rb', line 87 def details @details end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
87 88 89 |
# File 'lib/headhunter/html_validator.rb', line 87 def line @line end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
87 88 89 |
# File 'lib/headhunter/html_validator.rb', line 87 def end |
Instance Method Details
#to_s ⇒ Object
95 96 97 |
# File 'lib/headhunter/html_validator.rb', line 95 def to_s "Line #{@line}, column #{@details[:column]}: #{@message}." end |