class ExceptionHunter::Notifiers::SlackNotifierSerializer
@private
Public Class Methods
deserialize(hash)
click to toggle source
# File lib/exception_hunter/notifiers/slack_notifier_serializer.rb, line 12 def self.deserialize(hash) ExceptionHunter::Notifiers::SlackNotifier.new( hash[:error], hash[:notifier].deep_symbolize_keys ) end
serialize(slack_notifier)
click to toggle source
# File lib/exception_hunter/notifiers/slack_notifier_serializer.rb, line 5 def self.serialize(slack_notifier) { error: slack_notifier.error, notifier: slack_notifier.notifier.as_json } end