Class: GetStream::Generated::Models::UserResponseCommonFields

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

Initialize with attributes



68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/getstream_ruby/generated/models/user_response_common_fields.rb', line 68

def initialize(attributes = {})
  super(attributes)
  @banned = attributes[:banned] || attributes['banned']
  @created_at = attributes[:created_at] || attributes['created_at']
  @id = attributes[:id] || attributes['id']
  @language = attributes[:language] || attributes['language']
  @online = attributes[:online] || attributes['online']
  @role = attributes[:role] || attributes['role']
  @updated_at = attributes[:updated_at] || attributes['updated_at']
  @blocked_user_ids = attributes[:blocked_user_ids] || attributes['blocked_user_ids']
  @teams = attributes[:teams] || attributes['teams']
  @custom = attributes[:custom] || attributes['custom']
  @avg_response_time = attributes[:avg_response_time] || attributes['avg_response_time'] || nil
  @deactivated_at = attributes[:deactivated_at] || attributes['deactivated_at'] || nil
  @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil
  @image = attributes[:image] || attributes['image'] || nil
  @last_active = attributes[:last_active] || attributes['last_active'] || nil
  @name = attributes[:name] || attributes['name'] || nil
  @revoke_tokens_issued_before = attributes[:revoke_tokens_issued_before] || attributes['revoke_tokens_issued_before'] || nil
  @teams_role = attributes[:teams_role] || attributes['teams_role'] || nil
end

Instance Attribute Details

#avg_response_timeInteger



44
45
46
# File 'lib/getstream_ruby/generated/models/user_response_common_fields.rb', line 44

def avg_response_time
  @avg_response_time
end

#bannedBoolean



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

def banned
  @banned
end

#blocked_user_idsArray<String>



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

def blocked_user_ids
  @blocked_user_ids
end

#created_atDateTime



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

def created_at
  @created_at
end

#customObject



41
42
43
# File 'lib/getstream_ruby/generated/models/user_response_common_fields.rb', line 41

def custom
  @custom
end

#deactivated_atDateTime



47
48
49
# File 'lib/getstream_ruby/generated/models/user_response_common_fields.rb', line 47

def deactivated_at
  @deactivated_at
end

#deleted_atDateTime



50
51
52
# File 'lib/getstream_ruby/generated/models/user_response_common_fields.rb', line 50

def deleted_at
  @deleted_at
end

#idString



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

def id
  @id
end

#imageString



53
54
55
# File 'lib/getstream_ruby/generated/models/user_response_common_fields.rb', line 53

def image
  @image
end

#languageString



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

def language
  @language
end

#last_activeDateTime



56
57
58
# File 'lib/getstream_ruby/generated/models/user_response_common_fields.rb', line 56

def last_active
  @last_active
end

#nameString



59
60
61
# File 'lib/getstream_ruby/generated/models/user_response_common_fields.rb', line 59

def name
  @name
end

#onlineBoolean



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

def online
  @online
end

#revoke_tokens_issued_beforeDateTime



62
63
64
# File 'lib/getstream_ruby/generated/models/user_response_common_fields.rb', line 62

def revoke_tokens_issued_before
  @revoke_tokens_issued_before
end

#roleString



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

def role
  @role
end

#teamsArray<String>



38
39
40
# File 'lib/getstream_ruby/generated/models/user_response_common_fields.rb', line 38

def teams
  @teams
end

#teams_roleHash<String, String>



65
66
67
# File 'lib/getstream_ruby/generated/models/user_response_common_fields.rb', line 65

def teams_role
  @teams_role
end

#updated_atDateTime



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

def updated_at
  @updated_at
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# File 'lib/getstream_ruby/generated/models/user_response_common_fields.rb', line 91

def self.json_field_mappings
  {
    banned: 'banned',
    created_at: 'created_at',
    id: 'id',
    language: 'language',
    online: 'online',
    role: 'role',
    updated_at: 'updated_at',
    blocked_user_ids: 'blocked_user_ids',
    teams: 'teams',
    custom: 'custom',
    avg_response_time: 'avg_response_time',
    deactivated_at: 'deactivated_at',
    deleted_at: 'deleted_at',
    image: 'image',
    last_active: 'last_active',
    name: 'name',
    revoke_tokens_issued_before: 'revoke_tokens_issued_before',
    teams_role: 'teams_role'
  }
end