Class: Appsignal::Loaders::Loader Private

Inherits:
Object
  • Object
show all
Defined in:
lib/appsignal/loaders.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.loader_nameObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



79
80
81
# File 'lib/appsignal/loaders.rb', line 79

def loader_name
  @loader_name
end

Class Method Details

.register(name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



81
82
83
84
# File 'lib/appsignal/loaders.rb', line 81

def register(name)
  @loader_name = name
  Loaders.register(name, self)
end

Instance Method Details

#register_config_defaults(options) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



87
88
89
# File 'lib/appsignal/loaders.rb', line 87

def register_config_defaults(options)
  Appsignal::Config.add_loader_defaults(self.class.loader_name, **options)
end