Class: Errorgap::Span
- Inherits:
-
Struct
- Object
- Struct
- Errorgap::Span
- Defined in:
- lib/errorgap/transaction.rb
Instance Attribute Summary collapse
-
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
-
#file ⇒ Object
Returns the value of attribute file.
-
#fn_name ⇒ Object
Returns the value of attribute fn_name.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#line ⇒ Object
Returns the value of attribute line.
-
#sql ⇒ Object
Returns the value of attribute sql.
Instance Method Summary collapse
Instance Attribute Details
#duration_ms ⇒ Object
Returns the value of attribute duration_ms
6 7 8 |
# File 'lib/errorgap/transaction.rb', line 6 def duration_ms @duration_ms end |
#file ⇒ Object
Returns the value of attribute file
6 7 8 |
# File 'lib/errorgap/transaction.rb', line 6 def file @file end |
#fn_name ⇒ Object
Returns the value of attribute fn_name
6 7 8 |
# File 'lib/errorgap/transaction.rb', line 6 def fn_name @fn_name end |
#kind ⇒ Object
Returns the value of attribute kind
6 7 8 |
# File 'lib/errorgap/transaction.rb', line 6 def kind @kind end |
#line ⇒ Object
Returns the value of attribute line
6 7 8 |
# File 'lib/errorgap/transaction.rb', line 6 def line @line end |
#sql ⇒ Object
Returns the value of attribute sql
6 7 8 |
# File 'lib/errorgap/transaction.rb', line 6 def sql @sql end |
Instance Method Details
#to_h ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/errorgap/transaction.rb', line 7 def to_h { kind: kind, sql: sql, file: file, line: line, fn_name: fn_name, duration_ms: duration_ms }.compact end |