class Airbrake::Config::Validator

def check_notify_ability(config)

Experimental RBS support (using type sampling data from the type_fusion project).

def check_notify_ability: (Airbrake::Config config) -> Airbrake::Promise

This signature was generated using 6 samples from 1 application.

Other tags:
    Since: - v4.1.0

Parameters:
  • config (Airbrake::Config) --
def check_notify_ability(config)
  promise = Airbrake::Promise.new
  unless config.error_notifications
    return promise.reject('error notifications are disabled')
  end
  if ignored_environment?(config)
    return promise.reject(
      "current environment '#{config.environment}' is ignored",
    )
  end
  promise.resolve(:ok)
end