Class: Epuber::Epubcheck::Problem
- Inherits:
-
Struct
- Object
- Struct
- Epuber::Epubcheck::Problem
- Defined in:
- lib/epuber/epubcheck.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#level ⇒ Object
Returns the value of attribute level.
-
#location ⇒ Object
Returns the value of attribute location.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#to_s ⇒ Object
!attribute [r] message @return [String] message of the problem.
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code
19 20 21 |
# File 'lib/epuber/epubcheck.rb', line 19 def code @code end |
#level ⇒ Object
Returns the value of attribute level
19 20 21 |
# File 'lib/epuber/epubcheck.rb', line 19 def level @level end |
#location ⇒ Object
Returns the value of attribute location
19 20 21 |
# File 'lib/epuber/epubcheck.rb', line 19 def location @location end |
#message ⇒ Object
Returns the value of attribute message
19 20 21 |
# File 'lib/epuber/epubcheck.rb', line 19 def @message end |
Instance Method Details
#error? ⇒ Boolean
36 37 38 |
# File 'lib/epuber/epubcheck.rb', line 36 def error? level == :error || level == :fatal end |
#to_s ⇒ Object
!attribute [r] message
@return [String] message of the problem
32 33 34 |
# File 'lib/epuber/epubcheck.rb', line 32 def to_s "#{level}(#{code}): #{location.path}(#{location.lineno},#{location.column}): #{}" end |