Class: KwalifyToJsonSchema::Issue

Inherits:
Object
  • Object
show all
Defined in:
lib/kwalify_to_json_schema/issue.rb

Overview

Used to represent issues encoutered while converting

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (readonly)

Returns the value of attribute description.



5
6
7
# File 'lib/kwalify_to_json_schema/issue.rb', line 5

def description
  @description
end

#pathObject (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_sObject



12
13
14
# File 'lib/kwalify_to_json_schema/issue.rb', line 12

def to_s
  "Issue #{path.join "/"}: #{description}"
end