Class: Yanagi::Audit::Finding
- Inherits:
-
Struct
- Object
- Struct
- Yanagi::Audit::Finding
- Defined in:
- lib/yanagi/audit.rb
Instance Attribute Summary collapse
-
#approved ⇒ Object
Returns the value of attribute approved.
-
#canonical ⇒ Object
Returns the value of attribute canonical.
-
#col ⇒ Object
Returns the value of attribute col.
-
#file ⇒ Object
Returns the value of attribute file.
-
#line ⇒ Object
Returns the value of attribute line.
-
#message ⇒ Object
Returns the value of attribute message.
-
#tier ⇒ Object
Returns the value of attribute tier.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
Instance Attribute Details
#approved ⇒ Object
Returns the value of attribute approved
34 35 36 |
# File 'lib/yanagi/audit.rb', line 34 def approved @approved end |
#canonical ⇒ Object
Returns the value of attribute canonical
34 35 36 |
# File 'lib/yanagi/audit.rb', line 34 def canonical @canonical end |
#col ⇒ Object
Returns the value of attribute col
34 35 36 |
# File 'lib/yanagi/audit.rb', line 34 def col @col end |
#file ⇒ Object
Returns the value of attribute file
34 35 36 |
# File 'lib/yanagi/audit.rb', line 34 def file @file end |
#line ⇒ Object
Returns the value of attribute line
34 35 36 |
# File 'lib/yanagi/audit.rb', line 34 def line @line end |
#message ⇒ Object
Returns the value of attribute message
34 35 36 |
# File 'lib/yanagi/audit.rb', line 34 def @message end |
#tier ⇒ Object
Returns the value of attribute tier
34 35 36 |
# File 'lib/yanagi/audit.rb', line 34 def tier @tier end |
#token ⇒ Object
Returns the value of attribute token
34 35 36 |
# File 'lib/yanagi/audit.rb', line 34 def token @token end |
Instance Method Details
#to_h ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/yanagi/audit.rb', line 45 def to_h { "file" => file, "line" => line, "col" => col, "token" => token, "tier" => tier, "message" => , "canonical" => canonical, "approved" => approved || false } end |