Class: GemXray::Result::Reason
- Inherits:
-
Struct
- Object
- Struct
- GemXray::Result::Reason
- Defined in:
- lib/gemxray/result.rb
Instance Attribute Summary collapse
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#severity ⇒ Object
Returns the value of attribute severity.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#detail ⇒ Object
Returns the value of attribute detail
7 8 9 |
# File 'lib/gemxray/result.rb', line 7 def detail @detail end |
#severity ⇒ Object
Returns the value of attribute severity
7 8 9 |
# File 'lib/gemxray/result.rb', line 7 def severity @severity end |
#type ⇒ Object
Returns the value of attribute type
7 8 9 |
# File 'lib/gemxray/result.rb', line 7 def type @type end |
Instance Method Details
#to_h ⇒ Object
8 9 10 |
# File 'lib/gemxray/result.rb', line 8 def to_h { type: type.to_s, detail: detail } end |