Class: GetStream::Generated::Models::UpdateUsersResponse

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

Initialize with attributes



24
25
26
27
28
29
# File 'lib/getstream_ruby/generated/models/update_users_response.rb', line 24

def initialize(attributes = {})
  super(attributes)
  @duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) }
  @membership_deletion_task_id = attributes.fetch(:membership_deletion_task_id) { attributes.fetch('membership_deletion_task_id', nil) }
  @users = attributes.fetch(:users) { attributes.fetch('users', nil) }
end

Instance Attribute Details

#duration ⇒ String

Returns Duration of the request in milliseconds.

Returns:

  • (String) —

    Duration of the request in milliseconds



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

def duration
  @duration
end

#membership_deletion_task_id ⇒ Object

Deprecated.

This field is deprecated. @return [String] Deprecated: Always empty. Removing a user from a team no longer deletes their memberships in that team's channels, so there is no task to poll.



18
19
20
# File 'lib/getstream_ruby/generated/models/update_users_response.rb', line 18

def membership_deletion_task_id
  @membership_deletion_task_id
end

#users ⇒ Hash<String, FullUserResponse>

Returns Object containing users.

Returns:



21
22
23
# File 'lib/getstream_ruby/generated/models/update_users_response.rb', line 21

def users
  @users
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



32
33
34
35
36
37
38
# File 'lib/getstream_ruby/generated/models/update_users_response.rb', line 32

def self.json_field_mappings
  {
    duration: 'duration',
    membership_deletion_task_id: 'membership_deletion_task_id',
    users: 'users'
  }
end