Class: GetStream::Generated::Models::BulkActionAppealsRequest
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::BulkActionAppealsRequest
show all
- Defined in:
- lib/getstream_ruby/generated/models/bulk_action_appeals_request.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
41
42
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 41
def initialize(attributes = {})
super(attributes)
@action_type = attributes[:action_type] || attributes['action_type']
@appeal_ids = attributes[:appeal_ids] || attributes['appeal_ids']
@user_id = attributes[:user_id] || attributes['user_id'] || nil
@mark_reviewed = attributes[:mark_reviewed] || attributes['mark_reviewed'] || nil
@reject_appeal = attributes[:reject_appeal] || attributes['reject_appeal'] || nil
@restore = attributes[:restore] || attributes['restore'] || nil
@unban = attributes[:unban] || attributes['unban'] || nil
@unblock = attributes[:unblock] || attributes['unblock'] || nil
@user = attributes[:user] || attributes['user'] || nil
end
|
Instance Attribute Details
#action_type ⇒ String
Returns Action to apply: unban, restore, unblock, mark_reviewed, or reject_appeal.
14
15
16
|
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 14
def action_type
@action_type
end
|
#appeal_ids ⇒ Array<String>
Returns List of appeal UUIDs to process.
17
18
19
|
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 17
def appeal_ids
@appeal_ids
end
|
23
24
25
|
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 23
def mark_reviewed
@mark_reviewed
end
|
26
27
28
|
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 26
def reject_appeal
@reject_appeal
end
|
29
30
31
|
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 29
def restore
@restore
end
|
32
33
34
|
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 32
def unban
@unban
end
|
35
36
37
|
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 35
def unblock
@unblock
end
|
38
39
40
|
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 38
def user
@user
end
|
#user_id ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 20
def user_id
@user_id
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# File 'lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb', line 55
def self.json_field_mappings
{
action_type: 'action_type',
appeal_ids: 'appeal_ids',
user_id: 'user_id',
mark_reviewed: 'mark_reviewed',
reject_appeal: 'reject_appeal',
restore: 'restore',
unban: 'unban',
unblock: 'unblock',
user: 'user'
}
end
|