Class: Julewire::Core::Diagnostics::CallbackNotifier::Failure

Inherits:
Data
  • Object
show all
Defined in:
lib/julewire/core/diagnostics/callback_notifier.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#atObject (readonly)

Returns the value of attribute at

Returns:

  • (Object)

    the current value of at



14
15
16
# File 'lib/julewire/core/diagnostics/callback_notifier.rb', line 14

def at
  @at
end

#class_nameObject (readonly)

Returns the value of attribute class_name

Returns:

  • (Object)

    the current value of class_name



14
15
16
# File 'lib/julewire/core/diagnostics/callback_notifier.rb', line 14

def class_name
  @class_name
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



14
15
16
# File 'lib/julewire/core/diagnostics/callback_notifier.rb', line 14

def 
  @metadata
end

Instance Method Details

#to_hObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/julewire/core/diagnostics/callback_notifier.rb', line 15

def to_h
  {
    action: [:action],
    at: at,
    class: class_name,
    destination: [:destination],
    phase: [:phase],
    reason: [:reason]
  }.compact.freeze
end