class Ray::Payloads::TracePayload
Public Class Methods
new(locations)
click to toggle source
# File lib/ray/payloads/trace_payload.rb, line 5 def initialize(locations) @locations = locations end
Public Instance Methods
content()
click to toggle source
# File lib/ray/payloads/trace_payload.rb, line 13 def content frames = @locations.map do |location| { file_name: location.absolute_path, line_number: location.lineno, vendor_frame: false, } end { frames: frames } end
type()
click to toggle source
# File lib/ray/payloads/trace_payload.rb, line 9 def type 'trace' end