Class: GetStream::Generated::Models::DeactivateUsersRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/deactivate_users_request.rb

Overview

Deactivate users request

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 = {}) ⇒ DeactivateUsersRequest

Initialize with attributes



26
27
28
29
30
31
32
# File 'lib/getstream_ruby/generated/models/deactivate_users_request.rb', line 26

def initialize(attributes = {})
  super(attributes)
  @user_ids = attributes[:user_ids] || attributes['user_ids']
  @created_by_id = attributes[:created_by_id] || attributes['created_by_id'] || nil
  @mark_channels_deleted = attributes[:mark_channels_deleted] || attributes['mark_channels_deleted'] || nil
  @mark_messages_deleted = attributes[:mark_messages_deleted] || attributes['mark_messages_deleted'] || nil
end

Instance Attribute Details

#created_by_idString



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

def created_by_id
  @created_by_id
end

#mark_channels_deletedBoolean



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

def mark_channels_deleted
  @mark_channels_deleted
end

#mark_messages_deletedBoolean



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

def mark_messages_deleted
  @mark_messages_deleted
end

#user_idsArray<String>



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

def user_ids
  @user_ids
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



35
36
37
38
39
40
41
42
# File 'lib/getstream_ruby/generated/models/deactivate_users_request.rb', line 35

def self.json_field_mappings
  {
    user_ids: 'user_ids',
    created_by_id: 'created_by_id',
    mark_channels_deleted: 'mark_channels_deleted',
    mark_messages_deleted: 'mark_messages_deleted'
  }
end