Module: FFWD::Schema::Default::ApplicationJSON

Defined in:
lib/ffwd/schema/default.rb

Class Method Summary collapse

Class Method Details

.dump_event(e) ⇒ Object



29
30
31
# File 'lib/ffwd/schema/default.rb', line 29

def self.dump_event e
  JSON.dump e.to_h
end

.dump_metric(m) ⇒ Object



25
26
27
# File 'lib/ffwd/schema/default.rb', line 25

def self.dump_metric m
  JSON.dump m.to_h
end