-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathfile_version_create_event.rb
More file actions
34 lines (30 loc) · 1.09 KB
/
file_version_create_event.rb
File metadata and controls
34 lines (30 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# frozen_string_literal: true
module Imagekitio
module Models
class FileVersionCreateEvent < Imagekitio::Models::BaseWebhookEvent
# @!attribute created_at
# Timestamp of when the event occurred in ISO8601 format.
#
# @return [Time]
required :created_at, Time
# @!attribute data
# Object containing details of a file or file version.
#
# @return [Imagekitio::Models::File]
required :data, -> { Imagekitio::File }
# @!attribute type
# Type of the webhook event.
#
# @return [Symbol, :"file-version.created"]
required :type, const: :"file-version.created"
# @!method initialize(created_at:, data:, type: :"file-version.created")
# Triggered when a file version is created.
#
# @param created_at [Time] Timestamp of when the event occurred in ISO8601 format.
#
# @param data [Imagekitio::Models::File] Object containing details of a file or file version.
#
# @param type [Symbol, :"file-version.created"] Type of the webhook event.
end
end
end