module RaygunClient::Controls::Data
Public Class Methods
custom_data()
click to toggle source
# File lib/raygun_client/controls/data.rb, line 35 def self.custom_data { 'someKey' => 'some value' } end
example(custom_data=nil, tags=nil, time: nil)
click to toggle source
# File lib/raygun_client/controls/data.rb, line 4 def self.example(custom_data=nil, tags=nil, time: nil) custom_data ||= self.custom_data tags ||= self.tags time ||= self.time data = RaygunClient::Data.build data.occurred_time = time data.machine_name = machine_name data.tags = tags data.custom_data = custom_data data.client = RaygunClient::Data::ClientInfo.build data.error = Controls::ErrorData.example data end
machine_name()
click to toggle source
# File lib/raygun_client/controls/data.rb, line 27 def self.machine_name 'some machine name' end
time()
click to toggle source
# File lib/raygun_client/controls/data.rb, line 23 def self.time ::Controls::Time.example end