Class: GetStream::Generated::Models::AsyncExportErrorEvent
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::AsyncExportErrorEvent
show all
- Defined in:
- lib/getstream_ruby/generated/models/async_export_error_event.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
Initialize with attributes
38
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/getstream_ruby/generated/models/async_export_error_event.rb', line 38
def initialize(attributes = {})
super(attributes)
@created_at = attributes[:created_at] || attributes['created_at']
@error = attributes[:error] || attributes['error']
@finished_at = attributes[:finished_at] || attributes['finished_at']
@started_at = attributes[:started_at] || attributes['started_at']
@task_id = attributes[:task_id] || attributes['task_id']
@custom = attributes[:custom] || attributes['custom']
@type = attributes[:type] || attributes['type'] || "export.bulk_image_moderation.error"
@received_at = attributes[:received_at] || attributes['received_at'] || nil
end
|
Instance Attribute Details
#created_at ⇒ DateTime
14
15
16
|
# File 'lib/getstream_ruby/generated/models/async_export_error_event.rb', line 14
def created_at
@created_at
end
|
#custom ⇒ Object
29
30
31
|
# File 'lib/getstream_ruby/generated/models/async_export_error_event.rb', line 29
def custom
@custom
end
|
#error ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/async_export_error_event.rb', line 17
def error
@error
end
|
#finished_at ⇒ DateTime
20
21
22
|
# File 'lib/getstream_ruby/generated/models/async_export_error_event.rb', line 20
def finished_at
@finished_at
end
|
#received_at ⇒ DateTime
35
36
37
|
# File 'lib/getstream_ruby/generated/models/async_export_error_event.rb', line 35
def received_at
@received_at
end
|
#started_at ⇒ DateTime
23
24
25
|
# File 'lib/getstream_ruby/generated/models/async_export_error_event.rb', line 23
def started_at
@started_at
end
|
#task_id ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/async_export_error_event.rb', line 26
def task_id
@task_id
end
|
#type ⇒ String
32
33
34
|
# File 'lib/getstream_ruby/generated/models/async_export_error_event.rb', line 32
def type
@type
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
51
52
53
54
55
56
57
58
59
60
61
62
|
# File 'lib/getstream_ruby/generated/models/async_export_error_event.rb', line 51
def self.json_field_mappings
{
created_at: 'created_at',
error: 'error',
finished_at: 'finished_at',
started_at: 'started_at',
task_id: 'task_id',
custom: 'custom',
type: 'type',
received_at: 'received_at'
}
end
|