Module: Compass::JsonFormatter

Extended by:
ActiveSupport::Concern
Included in:
Notification::Provider, Search::Provider
Defined in:
lib/compass/json_formatter.rb

Overview

Formats an object into a JSON hash.

Defined Under Namespace

Classes: Formatter

Instance Method Summary collapse

Instance Method Details

#format(object) ⇒ Object



7
8
9
# File 'lib/compass/json_formatter.rb', line 7

def format(object)
  self.class.formatter&.to_h(self, object)
end