Class: GetStream::Generated::Models::FullUserResponse
- Defined in:
- lib/getstream_ruby/generated/models/full_user_response.rb
Instance Attribute Summary collapse
- #avg_response_time ⇒ Integer
- #ban_expires ⇒ DateTime
- #banned ⇒ Boolean
- #blocked_user_ids ⇒ Array<String>
- #channel_mutes ⇒ Array<ChannelMute>
- #created_at ⇒ DateTime
- #custom ⇒ Object
- #deactivated_at ⇒ DateTime
- #deleted_at ⇒ DateTime
- #devices ⇒ Array<DeviceResponse>
- #id ⇒ String
- #image ⇒ String
- #invisible ⇒ Boolean
- #language ⇒ String
- #last_active ⇒ DateTime
- #latest_hidden_channels ⇒ Array<String>
- #mutes ⇒ Array<UserMuteResponse>
- #name ⇒ String
- #online ⇒ Boolean
- #privacy_settings ⇒ PrivacySettingsResponse
- #revoke_tokens_issued_before ⇒ DateTime
- #role ⇒ String
- #shadow_banned ⇒ Boolean
- #teams ⇒ Array<String>
- #teams_role ⇒ Hash<String, String>
- #total_unread_count ⇒ Integer
- #unread_channels ⇒ Integer
- #unread_count ⇒ Integer
- #unread_threads ⇒ Integer
- #updated_at ⇒ DateTime
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ FullUserResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ FullUserResponse
Initialize with attributes
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 104 def initialize(attributes = {}) super(attributes) @banned = attributes[:banned] || attributes['banned'] @created_at = attributes[:created_at] || attributes['created_at'] @id = attributes[:id] || attributes['id'] @invisible = attributes[:invisible] || attributes['invisible'] @language = attributes[:language] || attributes['language'] @online = attributes[:online] || attributes['online'] @role = attributes[:role] || attributes['role'] @shadow_banned = attributes[:shadow_banned] || attributes['shadow_banned'] @total_unread_count = attributes[:total_unread_count] || attributes['total_unread_count'] @unread_channels = attributes[:unread_channels] || attributes['unread_channels'] @unread_count = attributes[:unread_count] || attributes['unread_count'] @unread_threads = attributes[:unread_threads] || attributes['unread_threads'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @blocked_user_ids = attributes[:blocked_user_ids] || attributes['blocked_user_ids'] @channel_mutes = attributes[:channel_mutes] || attributes['channel_mutes'] @devices = attributes[:devices] || attributes['devices'] @mutes = attributes[:mutes] || attributes['mutes'] @teams = attributes[:teams] || attributes['teams'] @custom = attributes[:custom] || attributes['custom'] @avg_response_time = attributes[:avg_response_time] || attributes['avg_response_time'] || nil @ban_expires = attributes[:ban_expires] || attributes['ban_expires'] || 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 @latest_hidden_channels = attributes[:latest_hidden_channels] || attributes['latest_hidden_channels'] || nil @privacy_settings = attributes[:privacy_settings] || attributes['privacy_settings'] || nil @teams_role = attributes[:teams_role] || attributes['teams_role'] || nil end |
Instance Attribute Details
#avg_response_time ⇒ Integer
71 72 73 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 71 def avg_response_time @avg_response_time end |
#ban_expires ⇒ DateTime
74 75 76 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 74 def ban_expires @ban_expires end |
#banned ⇒ Boolean
14 15 16 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 14 def banned @banned end |
#blocked_user_ids ⇒ Array<String>
53 54 55 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 53 def blocked_user_ids @blocked_user_ids end |
#channel_mutes ⇒ Array<ChannelMute>
56 57 58 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 56 def channel_mutes @channel_mutes end |
#created_at ⇒ DateTime
17 18 19 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 17 def created_at @created_at end |
#custom ⇒ Object
68 69 70 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 68 def custom @custom end |
#deactivated_at ⇒ DateTime
77 78 79 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 77 def deactivated_at @deactivated_at end |
#deleted_at ⇒ DateTime
80 81 82 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 80 def deleted_at @deleted_at end |
#devices ⇒ Array<DeviceResponse>
59 60 61 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 59 def devices @devices end |
#id ⇒ String
20 21 22 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 20 def id @id end |
#image ⇒ String
83 84 85 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 83 def image @image end |
#invisible ⇒ Boolean
23 24 25 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 23 def invisible @invisible end |
#language ⇒ String
26 27 28 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 26 def language @language end |
#last_active ⇒ DateTime
86 87 88 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 86 def last_active @last_active end |
#latest_hidden_channels ⇒ Array<String>
95 96 97 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 95 def latest_hidden_channels @latest_hidden_channels end |
#mutes ⇒ Array<UserMuteResponse>
62 63 64 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 62 def mutes @mutes end |
#name ⇒ String
89 90 91 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 89 def name @name end |
#online ⇒ Boolean
29 30 31 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 29 def online @online end |
#privacy_settings ⇒ PrivacySettingsResponse
98 99 100 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 98 def privacy_settings @privacy_settings end |
#revoke_tokens_issued_before ⇒ DateTime
92 93 94 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 92 def revoke_tokens_issued_before @revoke_tokens_issued_before end |
#role ⇒ String
32 33 34 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 32 def role @role end |
#shadow_banned ⇒ Boolean
35 36 37 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 35 def shadow_banned @shadow_banned end |
#teams ⇒ Array<String>
65 66 67 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 65 def teams @teams end |
#teams_role ⇒ Hash<String, String>
101 102 103 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 101 def teams_role @teams_role end |
#total_unread_count ⇒ Integer
38 39 40 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 38 def total_unread_count @total_unread_count end |
#unread_channels ⇒ Integer
41 42 43 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 41 def unread_channels @unread_channels end |
#unread_count ⇒ Integer
44 45 46 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 44 def unread_count @unread_count end |
#unread_threads ⇒ Integer
47 48 49 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 47 def unread_threads @unread_threads end |
#updated_at ⇒ DateTime
50 51 52 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 50 def updated_at @updated_at end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
# File 'lib/getstream_ruby/generated/models/full_user_response.rb', line 139 def self.json_field_mappings { banned: 'banned', created_at: 'created_at', id: 'id', invisible: 'invisible', language: 'language', online: 'online', role: 'role', shadow_banned: 'shadow_banned', total_unread_count: 'total_unread_count', unread_channels: 'unread_channels', unread_count: 'unread_count', unread_threads: 'unread_threads', updated_at: 'updated_at', blocked_user_ids: 'blocked_user_ids', channel_mutes: 'channel_mutes', devices: 'devices', mutes: 'mutes', teams: 'teams', custom: 'custom', avg_response_time: 'avg_response_time', ban_expires: 'ban_expires', deactivated_at: 'deactivated_at', deleted_at: 'deleted_at', image: 'image', last_active: 'last_active', name: 'name', revoke_tokens_issued_before: 'revoke_tokens_issued_before', latest_hidden_channels: 'latest_hidden_channels', privacy_settings: 'privacy_settings', teams_role: 'teams_role' } end |