Class: GetStream::Generated::Models::ChannelBatchStartedEvent
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ChannelBatchStartedEvent
show all
- Defined in:
- lib/getstream_ruby/generated/models/channel_batch_started_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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# File 'lib/getstream_ruby/generated/models/channel_batch_started_event.rb', line 47
def initialize(attributes = {})
super(attributes)
@batch_created_at = attributes.fetch(:batch_created_at) { attributes.fetch('batch_created_at', nil) }
@created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) }
@finished_at = attributes.fetch(:finished_at) { attributes.fetch('finished_at', nil) }
@operation = attributes.fetch(:operation) { attributes.fetch('operation', nil) }
@status = attributes.fetch(:status) { attributes.fetch('status', nil) }
@success_channels_count = attributes.fetch(:success_channels_count) { attributes.fetch('success_channels_count', nil) }
@task_id = attributes.fetch(:task_id) { attributes.fetch('task_id', nil) }
@failed_channels = attributes.fetch(:failed_channels) { attributes.fetch('failed_channels', nil) }
@custom = attributes.fetch(:custom) { attributes.fetch('custom', nil) }
@type = attributes.fetch(:type) { attributes.fetch('type', "channel_batch_update.started") }
@received_at = attributes.fetch(:received_at) { attributes.fetch('received_at', nil) }
end
|
Instance Attribute Details
#batch_created_at ⇒ DateTime
14
15
16
|
# File 'lib/getstream_ruby/generated/models/channel_batch_started_event.rb', line 14
def batch_created_at
@batch_created_at
end
|
#created_at ⇒ DateTime
17
18
19
|
# File 'lib/getstream_ruby/generated/models/channel_batch_started_event.rb', line 17
def created_at
@created_at
end
|
#custom ⇒ Object
38
39
40
|
# File 'lib/getstream_ruby/generated/models/channel_batch_started_event.rb', line 38
def custom
@custom
end
|
35
36
37
|
# File 'lib/getstream_ruby/generated/models/channel_batch_started_event.rb', line 35
def failed_channels
@failed_channels
end
|
#finished_at ⇒ DateTime
20
21
22
|
# File 'lib/getstream_ruby/generated/models/channel_batch_started_event.rb', line 20
def finished_at
@finished_at
end
|
#operation ⇒ String
23
24
25
|
# File 'lib/getstream_ruby/generated/models/channel_batch_started_event.rb', line 23
def operation
@operation
end
|
#received_at ⇒ DateTime
44
45
46
|
# File 'lib/getstream_ruby/generated/models/channel_batch_started_event.rb', line 44
def received_at
@received_at
end
|
#status ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/channel_batch_started_event.rb', line 26
def status
@status
end
|
#success_channels_count ⇒ Integer
29
30
31
|
# File 'lib/getstream_ruby/generated/models/channel_batch_started_event.rb', line 29
def success_channels_count
@success_channels_count
end
|
#task_id ⇒ String
32
33
34
|
# File 'lib/getstream_ruby/generated/models/channel_batch_started_event.rb', line 32
def task_id
@task_id
end
|
#type ⇒ String
41
42
43
|
# File 'lib/getstream_ruby/generated/models/channel_batch_started_event.rb', line 41
def type
@type
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# File 'lib/getstream_ruby/generated/models/channel_batch_started_event.rb', line 63
def self.json_field_mappings
{
batch_created_at: 'batch_created_at',
created_at: 'created_at',
finished_at: 'finished_at',
operation: 'operation',
status: 'status',
success_channels_count: 'success_channels_count',
task_id: 'task_id',
failed_channels: 'failed_channels',
custom: 'custom',
type: 'type',
received_at: 'received_at'
}
end
|