class Raygun::Breadcrumbs::Breadcrumb
Constants
- ATTRIBUTES
Public Instance Methods
build_payload()
click to toggle source
# File lib/raygun/breadcrumbs/breadcrumb.rb, line 11 def build_payload payload = { message: message, category: category, level: Breadcrumbs::BREADCRUMB_LEVELS.index(level), CustomData: metadata, timestamp: timestamp, type: type } payload[:location] = "#{class_name}:#{method_name}" unless class_name == nil payload[:location] += ":#{line_number}" if payload.has_key?(:location) && line_number != nil Hash[payload.select do |k, v| v != nil end] end
size()
click to toggle source
# File lib/raygun/breadcrumbs/breadcrumb.rb, line 29 def size return message.length + 100 end