Class: GetStream::Generated::Models::AsyncExportLabelResultsEvent

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/async_export_label_results_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(attributes = {}) ⇒ AsyncExportLabelResultsEvent

Initialize with attributes



38
39
40
41
42
43
44
45
46
47
48
# File 'lib/getstream_ruby/generated/models/async_export_label_results_event.rb', line 38

def initialize(attributes = {})
  super(attributes)
  @created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) }
  @finished_at = attributes.fetch(:finished_at) { attributes.fetch('finished_at', nil) }
  @started_at = attributes.fetch(:started_at) { attributes.fetch('started_at', nil) }
  @task_id = attributes.fetch(:task_id) { attributes.fetch('task_id', nil) }
  @url = attributes.fetch(:url) { attributes.fetch('url', nil) }
  @custom = attributes.fetch(:custom) { attributes.fetch('custom', nil) }
  @type = attributes.fetch(:type) { attributes.fetch('type', "export.label_results.success") }
  @received_at = attributes.fetch(:received_at) { attributes.fetch('received_at', nil) }
end

Instance Attribute Details

#created_at ⇒ DateTime

Returns:

  • (DateTime)


14
15
16
# File 'lib/getstream_ruby/generated/models/async_export_label_results_event.rb', line 14

def created_at
  @created_at
end

#custom ⇒ Object

Returns:

  • (Object)


29
30
31
# File 'lib/getstream_ruby/generated/models/async_export_label_results_event.rb', line 29

def custom
  @custom
end

#finished_at ⇒ DateTime

Returns:

  • (DateTime)


17
18
19
# File 'lib/getstream_ruby/generated/models/async_export_label_results_event.rb', line 17

def finished_at
  @finished_at
end

#received_at ⇒ DateTime

Returns:

  • (DateTime)


35
36
37
# File 'lib/getstream_ruby/generated/models/async_export_label_results_event.rb', line 35

def received_at
  @received_at
end

#started_at ⇒ DateTime

Returns:

  • (DateTime)


20
21
22
# File 'lib/getstream_ruby/generated/models/async_export_label_results_event.rb', line 20

def started_at
  @started_at
end

#task_id ⇒ String

Returns:

  • (String)


23
24
25
# File 'lib/getstream_ruby/generated/models/async_export_label_results_event.rb', line 23

def task_id
  @task_id
end

#type ⇒ String

Returns:

  • (String)


32
33
34
# File 'lib/getstream_ruby/generated/models/async_export_label_results_event.rb', line 32

def type
  @type
end

#url ⇒ String

Returns:

  • (String)


26
27
28
# File 'lib/getstream_ruby/generated/models/async_export_label_results_event.rb', line 26

def url
  @url
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_label_results_event.rb', line 51

def self.json_field_mappings
  {
    created_at: 'created_at',
    finished_at: 'finished_at',
    started_at: 'started_at',
    task_id: 'task_id',
    url: 'url',
    custom: 'custom',
    type: 'type',
    received_at: 'received_at'
  }
end