Class: GetStream::Generated::Models::AsyncExportUsersEvent

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

Initialize with attributes



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

def initialize(attributes = {})
  super(attributes)
  @created_at = attributes[:created_at] || attributes['created_at']
  @finished_at = attributes[:finished_at] || attributes['finished_at']
  @started_at = attributes[:started_at] || attributes['started_at']
  @task_id = attributes[:task_id] || attributes['task_id']
  @url = attributes[:url] || attributes['url']
  @custom = attributes[:custom] || attributes['custom']
  @type = attributes[:type] || attributes['type'] || "export.users.success"
  @received_at = attributes[:received_at] || attributes['received_at'] || nil
end

Instance Attribute Details

#created_atDateTime



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

def created_at
  @created_at
end

#customObject



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

def custom
  @custom
end

#finished_atDateTime



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

def finished_at
  @finished_at
end

#received_atDateTime



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

def received_at
  @received_at
end

#started_atDateTime



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

def started_at
  @started_at
end

#task_idString



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

def task_id
  @task_id
end

#typeString



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

def type
  @type
end

#urlString



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

def url
  @url
end

Class Method Details

.json_field_mappingsObject

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_users_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