Class: Headhunter::CssValidator::Response::Error
- Inherits:
-
Object
- Object
- Headhunter::CssValidator::Response::Error
- Defined in:
- lib/headhunter/css_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
137 138 139 140 141 |
# File 'lib/headhunter/css_validator.rb', line 137 def initialize(line, , details = {}) @line = line @message = @details = details end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
135 136 137 |
# File 'lib/headhunter/css_validator.rb', line 135 def details @details end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
135 136 137 |
# File 'lib/headhunter/css_validator.rb', line 135 def line @line end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
135 136 137 |
# File 'lib/headhunter/css_validator.rb', line 135 def @message end |
Instance Method Details
#to_s ⇒ Object
143 144 145 |
# File 'lib/headhunter/css_validator.rb', line 143 def to_s "Line #{@line}: #{@message}." end |