Class: KwalifyToJsonSchema::Issue
- Inherits:
-
Object
- Object
- KwalifyToJsonSchema::Issue
- Defined in:
- lib/kwalify_to_json_schema/issue.rb
Overview
Used to represent issues encoutered while converting
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, description) ⇒ Issue
constructor
A new instance of Issue.
- #to_s ⇒ Object
Constructor Details
#initialize(path, description) ⇒ Issue
Returns a new instance of Issue.
7 8 9 10 |
# File 'lib/kwalify_to_json_schema/issue.rb', line 7 def initialize(path, description) @path = path @description = description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/kwalify_to_json_schema/issue.rb', line 5 def description @description end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/kwalify_to_json_schema/issue.rb', line 4 def path @path end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/kwalify_to_json_schema/issue.rb', line 12 def to_s "Issue #{path.join "/"}: #{description}" end |