Class: Straycall::Violation
- Inherits:
-
Struct
- Object
- Struct
- Straycall::Violation
- Defined in:
- lib/straycall/violation.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#backtrace ⇒ Object
Returns the value of attribute backtrace.
-
#example ⇒ Object
Returns the value of attribute example.
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#suggestion ⇒ Object
Returns the value of attribute suggestion.
-
#syscall ⇒ Object
Returns the value of attribute syscall.
-
#target ⇒ Object
Returns the value of attribute target.
-
#tid ⇒ Object
Returns the value of attribute tid.
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action
4 5 6 |
# File 'lib/straycall/violation.rb', line 4 def action @action end |
#backtrace ⇒ Object
Returns the value of attribute backtrace
4 5 6 |
# File 'lib/straycall/violation.rb', line 4 def backtrace @backtrace end |
#example ⇒ Object
Returns the value of attribute example
4 5 6 |
# File 'lib/straycall/violation.rb', line 4 def example @example end |
#origin ⇒ Object
Returns the value of attribute origin
4 5 6 |
# File 'lib/straycall/violation.rb', line 4 def origin @origin end |
#suggestion ⇒ Object
Returns the value of attribute suggestion
4 5 6 |
# File 'lib/straycall/violation.rb', line 4 def suggestion @suggestion end |
#syscall ⇒ Object
Returns the value of attribute syscall
4 5 6 |
# File 'lib/straycall/violation.rb', line 4 def syscall @syscall end |
#target ⇒ Object
Returns the value of attribute target
4 5 6 |
# File 'lib/straycall/violation.rb', line 4 def target @target end |
#tid ⇒ Object
Returns the value of attribute tid
4 5 6 |
# File 'lib/straycall/violation.rb', line 4 def tid @tid end |
Instance Method Details
#to_h ⇒ Object
5 6 7 |
# File 'lib/straycall/violation.rb', line 5 def to_h {syscall: syscall.to_s, tid:, example:, target:, backtrace:, action: action.to_s, suggestion:, origin:}.compact end |