Class: Ibex::Verify::Violation
- Inherits:
-
Object
- Object
- Ibex::Verify::Violation
- Defined in:
- lib/ibex/verify/result.rb
Overview
One stable verifier finding.
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
: String.
-
#location ⇒ Object
readonly
: String.
-
#message ⇒ Object
readonly
: String.
Instance Method Summary collapse
-
#initialize(id:, location:, message:) ⇒ Violation
constructor
A new instance of Violation.
- #to_h ⇒ Object
Constructor Details
#initialize(id:, location:, message:) ⇒ Violation
Returns a new instance of Violation.
13 14 15 16 17 18 |
# File 'lib/ibex/verify/result.rb', line 13 def initialize(id:, location:, message:) @id = id.freeze @location = location.freeze @message = .freeze freeze end |
Instance Attribute Details
#id ⇒ Object (readonly)
: String
8 9 10 |
# File 'lib/ibex/verify/result.rb', line 8 def id @id end |
#location ⇒ Object (readonly)
: String
9 10 11 |
# File 'lib/ibex/verify/result.rb', line 9 def location @location end |
#message ⇒ Object (readonly)
: String
10 11 12 |
# File 'lib/ibex/verify/result.rb', line 10 def @message end |
Instance Method Details
#to_h ⇒ Object
21 22 23 |
# File 'lib/ibex/verify/result.rb', line 21 def to_h { id: @id, location: @location, message: @message }.freeze end |