Class: ExceptionNotifier::FluentLoggerNotifier::Argument

Inherits:
Object
  • Object
show all
Defined in:
lib/exception_notifier/fluent_logger_notifier.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template, exception, options = {}) ⇒ Argument

Returns a new instance of Argument.



29
30
31
32
33
# File 'lib/exception_notifier/fluent_logger_notifier.rb', line 29

def initialize(template, exception, options = {})
  @exception = exception
  @options = options
  @template = template
end

Class Method Details

.build(template, exception, options = {}) ⇒ Object



39
40
41
# File 'lib/exception_notifier/fluent_logger_notifier.rb', line 39

def self.build(template, exception, options = {})
  self.new(template, exception, options).build
end

Instance Method Details

#buildObject



35
36
37
# File 'lib/exception_notifier/fluent_logger_notifier.rb', line 35

def build
  expand_object(@template)
end