Class: GetStream::Generated::Models::ActionLogResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ActionLogResponse
show all
- Defined in:
- lib/getstream_ruby/generated/models/action_log_response.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 50
def initialize(attributes = {})
super(attributes)
@created_at = attributes[:created_at] || attributes['created_at']
@id = attributes[:id] || attributes['id']
@reason = attributes[:reason] || attributes['reason']
@reporter_type = attributes[:reporter_type] || attributes['reporter_type']
@target_user_id = attributes[:target_user_id] || attributes['target_user_id']
@type = attributes[:type] || attributes['type']
@user_id = attributes[:user_id] || attributes['user_id']
@ai_providers = attributes[:ai_providers] || attributes['ai_providers']
@custom = attributes[:custom] || attributes['custom']
@review_queue_item = attributes[:review_queue_item] || attributes['review_queue_item'] || nil
@target_user = attributes[:target_user] || attributes['target_user'] || nil
@user = attributes[:user] || attributes['user'] || nil
end
|
Instance Attribute Details
#ai_providers ⇒ Array<String>
35
36
37
|
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 35
def ai_providers
@ai_providers
end
|
#created_at ⇒ DateTime
14
15
16
|
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 14
def created_at
@created_at
end
|
#custom ⇒ Object
38
39
40
|
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 38
def custom
@custom
end
|
#id ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 17
def id
@id
end
|
#reason ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 20
def reason
@reason
end
|
#reporter_type ⇒ String
23
24
25
|
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 23
def reporter_type
@reporter_type
end
|
41
42
43
|
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 41
def review_queue_item
@review_queue_item
end
|
44
45
46
|
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 44
def target_user
@target_user
end
|
#target_user_id ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 26
def target_user_id
@target_user_id
end
|
#type ⇒ String
29
30
31
|
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 29
def type
@type
end
|
47
48
49
|
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 47
def user
@user
end
|
#user_id ⇒ String
32
33
34
|
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 32
def user_id
@user_id
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 67
def self.json_field_mappings
{
created_at: 'created_at',
id: 'id',
reason: 'reason',
reporter_type: 'reporter_type',
target_user_id: 'target_user_id',
type: 'type',
user_id: 'user_id',
ai_providers: 'ai_providers',
custom: 'custom',
review_queue_item: 'review_queue_item',
target_user: 'target_user',
user: 'user'
}
end
|