Class: Errorgap::Span

Inherits:
Struct
  • Object
show all
Defined in:
lib/errorgap/transaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#duration_msObject

Returns the value of attribute duration_ms

Returns:

  • (Object)

    the current value of duration_ms



6
7
8
# File 'lib/errorgap/transaction.rb', line 6

def duration_ms
  @duration_ms
end

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



6
7
8
# File 'lib/errorgap/transaction.rb', line 6

def file
  @file
end

#fn_nameObject

Returns the value of attribute fn_name

Returns:

  • (Object)

    the current value of fn_name



6
7
8
# File 'lib/errorgap/transaction.rb', line 6

def fn_name
  @fn_name
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



6
7
8
# File 'lib/errorgap/transaction.rb', line 6

def kind
  @kind
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



6
7
8
# File 'lib/errorgap/transaction.rb', line 6

def line
  @line
end

#sqlObject

Returns the value of attribute sql

Returns:

  • (Object)

    the current value of sql



6
7
8
# File 'lib/errorgap/transaction.rb', line 6

def sql
  @sql
end

Instance Method Details

#to_hObject



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