Class: RSpec::Covers::Probe::Call

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec/covers/probe/call_log_probe.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#eventObject

Returns the value of attribute event

Returns:

  • (Object)

    the current value of event



10
11
12
# File 'lib/rspec/covers/probe/call_log_probe.rb', line 10

def event
  @event
end

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



10
11
12
# File 'lib/rspec/covers/probe/call_log_probe.rb', line 10

def file
  @file
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



10
11
12
# File 'lib/rspec/covers/probe/call_log_probe.rb', line 10

def label
  @label
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



10
11
12
# File 'lib/rspec/covers/probe/call_log_probe.rb', line 10

def line
  @line
end

Instance Method Details

#to_hObject



11
12
13
# File 'lib/rspec/covers/probe/call_log_probe.rb', line 11

def to_h
  { label: label, file: file, line: line, event: event }
end