Class: Ibex::Verify::Violation
- Inherits:
-
Object
- Object
- Ibex::Verify::Violation
- Defined in:
- lib/ibex/verify/result.rb,
sig/ibex/verify/result.rbs
Overview
One stable verifier finding.
Instance Attribute Summary collapse
- #id ⇒ String readonly
- #location ⇒ String readonly
- #message ⇒ String readonly
Instance Method Summary collapse
-
#initialize(id:, location:, message:) ⇒ Violation
constructor
A new instance of Violation.
- #to_h ⇒ Hash[Symbol, String]
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 ⇒ String (readonly)
8 9 10 |
# File 'lib/ibex/verify/result.rb', line 8 def id @id end |
#location ⇒ String (readonly)
9 10 11 |
# File 'lib/ibex/verify/result.rb', line 9 def location @location end |
#message ⇒ String (readonly)
10 11 12 |
# File 'lib/ibex/verify/result.rb', line 10 def @message end |
Instance Method Details
#to_h ⇒ Hash[Symbol, String]
21 22 23 |
# File 'lib/ibex/verify/result.rb', line 21 def to_h { id: @id, location: @location, message: @message }.freeze end |