Class: FacebookAds::CrashLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/facebook_ads/crash_logger.rb

Class Method Summary collapse

Class Method Details

.disableObject

Disable crash reporting



116
117
118
# File 'lib/facebook_ads/crash_logger.rb', line 116

def disable
  @@enabled = false
end

.enableObject

Enable crash reporting



103
104
105
106
107
108
109
110
111
112
113
# File 'lib/facebook_ads/crash_logger.rb', line 103

def enable
  if !@@hasRegisteredCrashBlock then
    at_exit do
      completion()
    end

    @@hasRegisteredCrashBlock = true
  end

  @@enabled = true
end