Class: ExceptionNotifier::HatoNotifier::Query

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Query.



55
56
57
58
59
# File 'lib/exception_notifier/hato_notifier.rb', line 55

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

Class Method Details

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



65
66
67
# File 'lib/exception_notifier/hato_notifier.rb', line 65

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

Instance Method Details

#buildObject



61
62
63
# File 'lib/exception_notifier/hato_notifier.rb', line 61

def build
  expand_object(@template)
end