class Ray::Payloads::CallerPayload

Public Class Methods

new(location) click to toggle source
# File lib/ray/payloads/caller_payload.rb, line 5
def initialize(location)
  @location = location
end

Public Instance Methods

content() click to toggle source
# File lib/ray/payloads/caller_payload.rb, line 13
def content
  {
    frame: {
      file_name: @location.absolute_path,
      line_number: @location.lineno,
      vendor_frame: false,
    }
  }
end
type() click to toggle source
# File lib/ray/payloads/caller_payload.rb, line 9
def type
  'caller'
end