~cytrogen/masto-fe

ref: effe4728cf7adbefd9becf927cf4a34e3b337eb2 masto-fe/app/presenters/webhooks/event_presenter.rb -rw-r--r-- 269 bytes
effe4728 — github-actions[bot] New Crowdin Translations (automated) (#27005) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class Webhooks::EventPresenter < ActiveModelSerializers::Model
  attributes :type, :created_at, :object

  def initialize(type, object)
    super()

    @type       = type
    @created_at = Time.now.utc
    @object     = object
  end
end