event_presenter.rb 269 B

12345678910111213
  1. # frozen_string_literal: true
  2. class Webhooks::EventPresenter < ActiveModelSerializers::Model
  3. attributes :type, :created_at, :object
  4. def initialize(type, object)
  5. super()
  6. @type = type
  7. @created_at = Time.now.utc
  8. @object = object
  9. end
  10. end