Class: SlackWebApi::UserProfileObject

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/slack_web_api/models/user_profile_object.rb

Overview

UserProfileObject Model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#check_for_conflict, #process_additional_properties, #process_array, #process_basic_value, #process_hash, #to_hash, #to_json

Constructor Details

#initialize(avatar_hash:, display_name:, display_name_normalized:, fields:, phone:, real_name:, real_name_normalized:, skype:, status_emoji:, status_text:, title:, always_active: SKIP, api_app_id: SKIP, bot_id: SKIP, email: SKIP, first_name: SKIP, guest_expiration_ts: SKIP, guest_invited_by: SKIP, image_1024: SKIP, image_192: SKIP, image_24: SKIP, image_32: SKIP, image_48: SKIP, image_512: SKIP, image_72: SKIP, image_original: SKIP, is_app_user: SKIP, is_custom_image: SKIP, is_restricted: SKIP, is_ultra_restricted: SKIP, last_avatar_image_hash: SKIP, last_name: SKIP, memberships_count: SKIP, name: SKIP, pronouns: SKIP, status_default_emoji: SKIP, status_default_text: SKIP, status_default_text_canonical: SKIP, status_expiration: SKIP, status_text_canonical: SKIP, team: SKIP, updated: SKIP, user_id: SKIP, username: SKIP, additional_properties: nil) ⇒ UserProfileObject

Returns a new instance of UserProfileObject.



304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
# File 'lib/slack_web_api/models/user_profile_object.rb', line 304

def initialize(avatar_hash:, display_name:, display_name_normalized:,
               fields:, phone:, real_name:, real_name_normalized:, skype:,
               status_emoji:, status_text:, title:, always_active: SKIP,
               api_app_id: SKIP, bot_id: SKIP, email: SKIP,
               first_name: SKIP, guest_expiration_ts: SKIP,
               guest_invited_by: SKIP, image_1024: SKIP, image_192: SKIP,
               image_24: SKIP, image_32: SKIP, image_48: SKIP,
               image_512: SKIP, image_72: SKIP, image_original: SKIP,
               is_app_user: SKIP, is_custom_image: SKIP,
               is_restricted: SKIP, is_ultra_restricted: SKIP,
               last_avatar_image_hash: SKIP, last_name: SKIP,
               memberships_count: SKIP, name: SKIP, pronouns: SKIP,
               status_default_emoji: SKIP, status_default_text: SKIP,
               status_default_text_canonical: SKIP, status_expiration: SKIP,
               status_text_canonical: SKIP, team: SKIP, updated: SKIP,
               user_id: SKIP, username: SKIP, additional_properties: nil)
  # Add additional model properties to the instance

  additional_properties = {} if additional_properties.nil?

  @always_active = always_active unless always_active == SKIP
  @api_app_id = api_app_id unless api_app_id == SKIP
  @avatar_hash = avatar_hash
  @bot_id = bot_id unless bot_id == SKIP
  @display_name = display_name
  @display_name_normalized = display_name_normalized
  @email = email unless email == SKIP
  @fields = fields
  @first_name = first_name unless first_name == SKIP
  @guest_expiration_ts = guest_expiration_ts unless guest_expiration_ts == SKIP
  @guest_invited_by = guest_invited_by unless guest_invited_by == SKIP
  @image_1024 = image_1024 unless image_1024 == SKIP
  @image_192 = image_192 unless image_192 == SKIP
  @image_24 = image_24 unless image_24 == SKIP
  @image_32 = image_32 unless image_32 == SKIP
  @image_48 = image_48 unless image_48 == SKIP
  @image_512 = image_512 unless image_512 == SKIP
  @image_72 = image_72 unless image_72 == SKIP
  @image_original = image_original unless image_original == SKIP
  @is_app_user = is_app_user unless is_app_user == SKIP
  @is_custom_image = is_custom_image unless is_custom_image == SKIP
  @is_restricted = is_restricted unless is_restricted == SKIP
  @is_ultra_restricted = is_ultra_restricted unless is_ultra_restricted == SKIP
  @last_avatar_image_hash = last_avatar_image_hash unless last_avatar_image_hash == SKIP
  @last_name = last_name unless last_name == SKIP
  @memberships_count = memberships_count unless memberships_count == SKIP
  @name = name unless name == SKIP
  @phone = phone
  @pronouns = pronouns unless pronouns == SKIP
  @real_name = real_name
  @real_name_normalized = real_name_normalized
  @skype = skype
  @status_default_emoji = status_default_emoji unless status_default_emoji == SKIP
  @status_default_text = status_default_text unless status_default_text == SKIP
  unless status_default_text_canonical == SKIP
    @status_default_text_canonical =
      status_default_text_canonical
  end
  @status_emoji = status_emoji
  @status_expiration = status_expiration unless status_expiration == SKIP
  @status_text = status_text
  @status_text_canonical = status_text_canonical unless status_text_canonical == SKIP
  @team = team unless team == SKIP
  @title = title
  @updated = updated unless updated == SKIP
  @user_id = user_id unless user_id == SKIP
  @username = username unless username == SKIP
  @additional_properties = additional_properties
end

Instance Attribute Details

#always_activeTrueClass | FalseClass

TODO: Write general description for this method

Returns:

  • (TrueClass | FalseClass)


14
15
16
# File 'lib/slack_web_api/models/user_profile_object.rb', line 14

def always_active
  @always_active
end

#api_app_idString

TODO: Write general description for this method

Returns:

  • (String)


18
19
20
# File 'lib/slack_web_api/models/user_profile_object.rb', line 18

def api_app_id
  @api_app_id
end

#avatar_hashString

TODO: Write general description for this method

Returns:

  • (String)


22
23
24
# File 'lib/slack_web_api/models/user_profile_object.rb', line 22

def avatar_hash
  @avatar_hash
end

#bot_idString

TODO: Write general description for this method

Returns:

  • (String)


26
27
28
# File 'lib/slack_web_api/models/user_profile_object.rb', line 26

def bot_id
  @bot_id
end

#display_nameString

TODO: Write general description for this method

Returns:

  • (String)


30
31
32
# File 'lib/slack_web_api/models/user_profile_object.rb', line 30

def display_name
  @display_name
end

#display_name_normalizedString

TODO: Write general description for this method

Returns:

  • (String)


34
35
36
# File 'lib/slack_web_api/models/user_profile_object.rb', line 34

def display_name_normalized
  @display_name_normalized
end

#emailString

TODO: Write general description for this method

Returns:

  • (String)


38
39
40
# File 'lib/slack_web_api/models/user_profile_object.rb', line 38

def email
  @email
end

#fieldsArray[Object]

TODO: Write general description for this method

Returns:

  • (Array[Object])


42
43
44
# File 'lib/slack_web_api/models/user_profile_object.rb', line 42

def fields
  @fields
end

#first_nameString

TODO: Write general description for this method

Returns:

  • (String)


46
47
48
# File 'lib/slack_web_api/models/user_profile_object.rb', line 46

def first_name
  @first_name
end

#guest_expiration_tsInteger

TODO: Write general description for this method

Returns:

  • (Integer)


50
51
52
# File 'lib/slack_web_api/models/user_profile_object.rb', line 50

def guest_expiration_ts
  @guest_expiration_ts
end

#guest_invited_byString

TODO: Write general description for this method

Returns:

  • (String)


54
55
56
# File 'lib/slack_web_api/models/user_profile_object.rb', line 54

def guest_invited_by
  @guest_invited_by
end

#image_1024String

TODO: Write general description for this method

Returns:

  • (String)


58
59
60
# File 'lib/slack_web_api/models/user_profile_object.rb', line 58

def image_1024
  @image_1024
end

#image_192String

TODO: Write general description for this method

Returns:

  • (String)


62
63
64
# File 'lib/slack_web_api/models/user_profile_object.rb', line 62

def image_192
  @image_192
end

#image_24String

TODO: Write general description for this method

Returns:

  • (String)


66
67
68
# File 'lib/slack_web_api/models/user_profile_object.rb', line 66

def image_24
  @image_24
end

#image_32String

TODO: Write general description for this method

Returns:

  • (String)


70
71
72
# File 'lib/slack_web_api/models/user_profile_object.rb', line 70

def image_32
  @image_32
end

#image_48String

TODO: Write general description for this method

Returns:

  • (String)


74
75
76
# File 'lib/slack_web_api/models/user_profile_object.rb', line 74

def image_48
  @image_48
end

#image_512String

TODO: Write general description for this method

Returns:

  • (String)


78
79
80
# File 'lib/slack_web_api/models/user_profile_object.rb', line 78

def image_512
  @image_512
end

#image_72String

TODO: Write general description for this method

Returns:

  • (String)


82
83
84
# File 'lib/slack_web_api/models/user_profile_object.rb', line 82

def image_72
  @image_72
end

#image_originalString

TODO: Write general description for this method

Returns:

  • (String)


86
87
88
# File 'lib/slack_web_api/models/user_profile_object.rb', line 86

def image_original
  @image_original
end

#is_app_userTrueClass | FalseClass

TODO: Write general description for this method

Returns:

  • (TrueClass | FalseClass)


90
91
92
# File 'lib/slack_web_api/models/user_profile_object.rb', line 90

def is_app_user
  @is_app_user
end

#is_custom_imageTrueClass | FalseClass

TODO: Write general description for this method

Returns:

  • (TrueClass | FalseClass)


94
95
96
# File 'lib/slack_web_api/models/user_profile_object.rb', line 94

def is_custom_image
  @is_custom_image
end

#is_restrictedTrueClass | FalseClass

TODO: Write general description for this method

Returns:

  • (TrueClass | FalseClass)


98
99
100
# File 'lib/slack_web_api/models/user_profile_object.rb', line 98

def is_restricted
  @is_restricted
end

#is_ultra_restrictedTrueClass | FalseClass

TODO: Write general description for this method

Returns:

  • (TrueClass | FalseClass)


102
103
104
# File 'lib/slack_web_api/models/user_profile_object.rb', line 102

def is_ultra_restricted
  @is_ultra_restricted
end

#last_avatar_image_hashString

TODO: Write general description for this method

Returns:

  • (String)


106
107
108
# File 'lib/slack_web_api/models/user_profile_object.rb', line 106

def last_avatar_image_hash
  @last_avatar_image_hash
end

#last_nameString

TODO: Write general description for this method

Returns:

  • (String)


110
111
112
# File 'lib/slack_web_api/models/user_profile_object.rb', line 110

def last_name
  @last_name
end

#memberships_countInteger

TODO: Write general description for this method

Returns:

  • (Integer)


114
115
116
# File 'lib/slack_web_api/models/user_profile_object.rb', line 114

def memberships_count
  @memberships_count
end

#nameString

TODO: Write general description for this method

Returns:

  • (String)


118
119
120
# File 'lib/slack_web_api/models/user_profile_object.rb', line 118

def name
  @name
end

#phoneString

TODO: Write general description for this method

Returns:

  • (String)


122
123
124
# File 'lib/slack_web_api/models/user_profile_object.rb', line 122

def phone
  @phone
end

#pronounsString

TODO: Write general description for this method

Returns:

  • (String)


126
127
128
# File 'lib/slack_web_api/models/user_profile_object.rb', line 126

def pronouns
  @pronouns
end

#real_nameString

TODO: Write general description for this method

Returns:

  • (String)


130
131
132
# File 'lib/slack_web_api/models/user_profile_object.rb', line 130

def real_name
  @real_name
end

#real_name_normalizedString

TODO: Write general description for this method

Returns:

  • (String)


134
135
136
# File 'lib/slack_web_api/models/user_profile_object.rb', line 134

def real_name_normalized
  @real_name_normalized
end

#skypeString

TODO: Write general description for this method

Returns:

  • (String)


138
139
140
# File 'lib/slack_web_api/models/user_profile_object.rb', line 138

def skype
  @skype
end

#status_default_emojiString

TODO: Write general description for this method

Returns:

  • (String)


142
143
144
# File 'lib/slack_web_api/models/user_profile_object.rb', line 142

def status_default_emoji
  @status_default_emoji
end

#status_default_textString

TODO: Write general description for this method

Returns:

  • (String)


146
147
148
# File 'lib/slack_web_api/models/user_profile_object.rb', line 146

def status_default_text
  @status_default_text
end

#status_default_text_canonicalString

TODO: Write general description for this method

Returns:

  • (String)


150
151
152
# File 'lib/slack_web_api/models/user_profile_object.rb', line 150

def status_default_text_canonical
  @status_default_text_canonical
end

#status_emojiString

TODO: Write general description for this method

Returns:

  • (String)


154
155
156
# File 'lib/slack_web_api/models/user_profile_object.rb', line 154

def status_emoji
  @status_emoji
end

#status_expirationInteger

TODO: Write general description for this method

Returns:

  • (Integer)


158
159
160
# File 'lib/slack_web_api/models/user_profile_object.rb', line 158

def status_expiration
  @status_expiration
end

#status_textString

TODO: Write general description for this method

Returns:

  • (String)


162
163
164
# File 'lib/slack_web_api/models/user_profile_object.rb', line 162

def status_text
  @status_text
end

#status_text_canonicalString

TODO: Write general description for this method

Returns:

  • (String)


166
167
168
# File 'lib/slack_web_api/models/user_profile_object.rb', line 166

def status_text_canonical
  @status_text_canonical
end

#teamString

TODO: Write general description for this method

Returns:

  • (String)


170
171
172
# File 'lib/slack_web_api/models/user_profile_object.rb', line 170

def team
  @team
end

#titleString

TODO: Write general description for this method

Returns:

  • (String)


174
175
176
# File 'lib/slack_web_api/models/user_profile_object.rb', line 174

def title
  @title
end

#updatedInteger

TODO: Write general description for this method

Returns:

  • (Integer)


178
179
180
# File 'lib/slack_web_api/models/user_profile_object.rb', line 178

def updated
  @updated
end

#user_idString

TODO: Write general description for this method

Returns:

  • (String)


182
183
184
# File 'lib/slack_web_api/models/user_profile_object.rb', line 182

def user_id
  @user_id
end

#usernameString

TODO: Write general description for this method

Returns:

  • (String)


186
187
188
# File 'lib/slack_web_api/models/user_profile_object.rb', line 186

def username
  @username
end

Class Method Details

.from_hash(hash) ⇒ Object

Creates an instance of the object from a hash.



374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
# File 'lib/slack_web_api/models/user_profile_object.rb', line 374

def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.

  avatar_hash = hash.key?('avatar_hash') ? hash['avatar_hash'] : nil
  display_name = hash.key?('display_name') ? hash['display_name'] : nil
  display_name_normalized =
    hash.key?('display_name_normalized') ? hash['display_name_normalized'] : nil
  fields = hash.key?('fields') ? hash['fields'] : nil
  phone = hash.key?('phone') ? hash['phone'] : nil
  real_name = hash.key?('real_name') ? hash['real_name'] : nil
  real_name_normalized =
    hash.key?('real_name_normalized') ? hash['real_name_normalized'] : nil
  skype = hash.key?('skype') ? hash['skype'] : nil
  status_emoji = hash.key?('status_emoji') ? hash['status_emoji'] : nil
  status_text = hash.key?('status_text') ? hash['status_text'] : nil
  title = hash.key?('title') ? hash['title'] : nil
  always_active = hash.key?('always_active') ? hash['always_active'] : SKIP
  api_app_id = hash.key?('api_app_id') ? hash['api_app_id'] : SKIP
  bot_id = hash.key?('bot_id') ? hash['bot_id'] : SKIP
  email = hash.key?('email') ? hash['email'] : SKIP
  first_name = hash.key?('first_name') ? hash['first_name'] : SKIP
  guest_expiration_ts =
    hash.key?('guest_expiration_ts') ? hash['guest_expiration_ts'] : SKIP
  guest_invited_by =
    hash.key?('guest_invited_by') ? hash['guest_invited_by'] : SKIP
  image_1024 = hash.key?('image_1024') ? hash['image_1024'] : SKIP
  image_192 = hash.key?('image_192') ? hash['image_192'] : SKIP
  image_24 = hash.key?('image_24') ? hash['image_24'] : SKIP
  image_32 = hash.key?('image_32') ? hash['image_32'] : SKIP
  image_48 = hash.key?('image_48') ? hash['image_48'] : SKIP
  image_512 = hash.key?('image_512') ? hash['image_512'] : SKIP
  image_72 = hash.key?('image_72') ? hash['image_72'] : SKIP
  image_original =
    hash.key?('image_original') ? hash['image_original'] : SKIP
  is_app_user = hash.key?('is_app_user') ? hash['is_app_user'] : SKIP
  is_custom_image =
    hash.key?('is_custom_image') ? hash['is_custom_image'] : SKIP
  is_restricted = hash.key?('is_restricted') ? hash['is_restricted'] : SKIP
  is_ultra_restricted =
    hash.key?('is_ultra_restricted') ? hash['is_ultra_restricted'] : SKIP
  last_avatar_image_hash =
    hash.key?('last_avatar_image_hash') ? hash['last_avatar_image_hash'] : SKIP
  last_name = hash.key?('last_name') ? hash['last_name'] : SKIP
  memberships_count =
    hash.key?('memberships_count') ? hash['memberships_count'] : SKIP
  name = hash.key?('name') ? hash['name'] : SKIP
  pronouns = hash.key?('pronouns') ? hash['pronouns'] : SKIP
  status_default_emoji =
    hash.key?('status_default_emoji') ? hash['status_default_emoji'] : SKIP
  status_default_text =
    hash.key?('status_default_text') ? hash['status_default_text'] : SKIP
  status_default_text_canonical =
    hash.key?('status_default_text_canonical') ? hash['status_default_text_canonical'] : SKIP
  status_expiration =
    hash.key?('status_expiration') ? hash['status_expiration'] : SKIP
  status_text_canonical =
    hash.key?('status_text_canonical') ? hash['status_text_canonical'] : SKIP
  team = hash.key?('team') ? hash['team'] : SKIP
  updated = hash.key?('updated') ? hash['updated'] : SKIP
  user_id = hash.key?('user_id') ? hash['user_id'] : SKIP
  username = hash.key?('username') ? hash['username'] : SKIP

  # Create a new hash for additional properties, removing known properties.

  new_hash = hash.reject { |k, _| names.value?(k) }

  additional_properties = APIHelper.get_additional_properties(
    new_hash, proc { |value| value }
  )

  # Create object from extracted values.

  UserProfileObject.new(avatar_hash: avatar_hash,
                        display_name: display_name,
                        display_name_normalized: display_name_normalized,
                        fields: fields,
                        phone: phone,
                        real_name: real_name,
                        real_name_normalized: real_name_normalized,
                        skype: skype,
                        status_emoji: status_emoji,
                        status_text: status_text,
                        title: title,
                        always_active: always_active,
                        api_app_id: api_app_id,
                        bot_id: bot_id,
                        email: email,
                        first_name: first_name,
                        guest_expiration_ts: guest_expiration_ts,
                        guest_invited_by: guest_invited_by,
                        image_1024: image_1024,
                        image_192: image_192,
                        image_24: image_24,
                        image_32: image_32,
                        image_48: image_48,
                        image_512: image_512,
                        image_72: image_72,
                        image_original: image_original,
                        is_app_user: is_app_user,
                        is_custom_image: is_custom_image,
                        is_restricted: is_restricted,
                        is_ultra_restricted: is_ultra_restricted,
                        last_avatar_image_hash: last_avatar_image_hash,
                        last_name: last_name,
                        memberships_count: memberships_count,
                        name: name,
                        pronouns: pronouns,
                        status_default_emoji: status_default_emoji,
                        status_default_text: status_default_text,
                        status_default_text_canonical: status_default_text_canonical,
                        status_expiration: status_expiration,
                        status_text_canonical: status_text_canonical,
                        team: team,
                        updated: updated,
                        user_id: user_id,
                        username: username,
                        additional_properties: additional_properties)
end

.namesObject

A mapping from model property names to API property names.



189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
# File 'lib/slack_web_api/models/user_profile_object.rb', line 189

def self.names
  @_hash = {} if @_hash.nil?
  @_hash['always_active'] = 'always_active'
  @_hash['api_app_id'] = 'api_app_id'
  @_hash['avatar_hash'] = 'avatar_hash'
  @_hash['bot_id'] = 'bot_id'
  @_hash['display_name'] = 'display_name'
  @_hash['display_name_normalized'] = 'display_name_normalized'
  @_hash['email'] = 'email'
  @_hash['fields'] = 'fields'
  @_hash['first_name'] = 'first_name'
  @_hash['guest_expiration_ts'] = 'guest_expiration_ts'
  @_hash['guest_invited_by'] = 'guest_invited_by'
  @_hash['image_1024'] = 'image_1024'
  @_hash['image_192'] = 'image_192'
  @_hash['image_24'] = 'image_24'
  @_hash['image_32'] = 'image_32'
  @_hash['image_48'] = 'image_48'
  @_hash['image_512'] = 'image_512'
  @_hash['image_72'] = 'image_72'
  @_hash['image_original'] = 'image_original'
  @_hash['is_app_user'] = 'is_app_user'
  @_hash['is_custom_image'] = 'is_custom_image'
  @_hash['is_restricted'] = 'is_restricted'
  @_hash['is_ultra_restricted'] = 'is_ultra_restricted'
  @_hash['last_avatar_image_hash'] = 'last_avatar_image_hash'
  @_hash['last_name'] = 'last_name'
  @_hash['memberships_count'] = 'memberships_count'
  @_hash['name'] = 'name'
  @_hash['phone'] = 'phone'
  @_hash['pronouns'] = 'pronouns'
  @_hash['real_name'] = 'real_name'
  @_hash['real_name_normalized'] = 'real_name_normalized'
  @_hash['skype'] = 'skype'
  @_hash['status_default_emoji'] = 'status_default_emoji'
  @_hash['status_default_text'] = 'status_default_text'
  @_hash['status_default_text_canonical'] =
    'status_default_text_canonical'
  @_hash['status_emoji'] = 'status_emoji'
  @_hash['status_expiration'] = 'status_expiration'
  @_hash['status_text'] = 'status_text'
  @_hash['status_text_canonical'] = 'status_text_canonical'
  @_hash['team'] = 'team'
  @_hash['title'] = 'title'
  @_hash['updated'] = 'updated'
  @_hash['user_id'] = 'user_id'
  @_hash['username'] = 'username'
  @_hash
end

.nullablesObject

An array for nullable fields



279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/slack_web_api/models/user_profile_object.rb', line 279

def self.nullables
  %w[
    email
    fields
    first_name
    guest_expiration_ts
    guest_invited_by
    image_1024
    image_192
    image_24
    image_32
    image_48
    image_512
    image_72
    image_original
    is_restricted
    is_ultra_restricted
    last_name
    name
    status_default_text_canonical
    status_text_canonical
    username
  ]
end

.optionalsObject

An array for optional fields



240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
# File 'lib/slack_web_api/models/user_profile_object.rb', line 240

def self.optionals
  %w[
    always_active
    api_app_id
    bot_id
    email
    first_name
    guest_expiration_ts
    guest_invited_by
    image_1024
    image_192
    image_24
    image_32
    image_48
    image_512
    image_72
    image_original
    is_app_user
    is_custom_image
    is_restricted
    is_ultra_restricted
    last_avatar_image_hash
    last_name
    memberships_count
    name
    pronouns
    status_default_emoji
    status_default_text
    status_default_text_canonical
    status_expiration
    status_text_canonical
    team
    updated
    user_id
    username
  ]
end

Instance Method Details

#inspectObject

Provides a debugging-friendly string with detailed object information.



516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
# File 'lib/slack_web_api/models/user_profile_object.rb', line 516

def inspect
  class_name = self.class.name.split('::').last
  "<#{class_name} always_active: #{@always_active.inspect}, api_app_id:"\
  " #{@api_app_id.inspect}, avatar_hash: #{@avatar_hash.inspect}, bot_id: #{@bot_id.inspect},"\
  " display_name: #{@display_name.inspect}, display_name_normalized:"\
  " #{@display_name_normalized.inspect}, email: #{@email.inspect}, fields: #{@fields.inspect},"\
  " first_name: #{@first_name.inspect}, guest_expiration_ts: #{@guest_expiration_ts.inspect},"\
  " guest_invited_by: #{@guest_invited_by.inspect}, image_1024: #{@image_1024.inspect},"\
  " image_192: #{@image_192.inspect}, image_24: #{@image_24.inspect}, image_32:"\
  " #{@image_32.inspect}, image_48: #{@image_48.inspect}, image_512: #{@image_512.inspect},"\
  " image_72: #{@image_72.inspect}, image_original: #{@image_original.inspect}, is_app_user:"\
  " #{@is_app_user.inspect}, is_custom_image: #{@is_custom_image.inspect}, is_restricted:"\
  " #{@is_restricted.inspect}, is_ultra_restricted: #{@is_ultra_restricted.inspect},"\
  " last_avatar_image_hash: #{@last_avatar_image_hash.inspect}, last_name:"\
  " #{@last_name.inspect}, memberships_count: #{@memberships_count.inspect}, name:"\
  " #{@name.inspect}, phone: #{@phone.inspect}, pronouns: #{@pronouns.inspect}, real_name:"\
  " #{@real_name.inspect}, real_name_normalized: #{@real_name_normalized.inspect}, skype:"\
  " #{@skype.inspect}, status_default_emoji: #{@status_default_emoji.inspect},"\
  " status_default_text: #{@status_default_text.inspect}, status_default_text_canonical:"\
  " #{@status_default_text_canonical.inspect}, status_emoji: #{@status_emoji.inspect},"\
  " status_expiration: #{@status_expiration.inspect}, status_text: #{@status_text.inspect},"\
  " status_text_canonical: #{@status_text_canonical.inspect}, team: #{@team.inspect}, title:"\
  " #{@title.inspect}, updated: #{@updated.inspect}, user_id: #{@user_id.inspect}, username:"\
  " #{@username.inspect}, additional_properties: #{@additional_properties}>"
end

#to_sObject

Provides a human-readable string representation of the object.



493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
# File 'lib/slack_web_api/models/user_profile_object.rb', line 493

def to_s
  class_name = self.class.name.split('::').last
  "<#{class_name} always_active: #{@always_active}, api_app_id: #{@api_app_id}, avatar_hash:"\
  " #{@avatar_hash}, bot_id: #{@bot_id}, display_name: #{@display_name},"\
  " display_name_normalized: #{@display_name_normalized}, email: #{@email}, fields:"\
  " #{@fields}, first_name: #{@first_name}, guest_expiration_ts: #{@guest_expiration_ts},"\
  " guest_invited_by: #{@guest_invited_by}, image_1024: #{@image_1024}, image_192:"\
  " #{@image_192}, image_24: #{@image_24}, image_32: #{@image_32}, image_48: #{@image_48},"\
  " image_512: #{@image_512}, image_72: #{@image_72}, image_original: #{@image_original},"\
  " is_app_user: #{@is_app_user}, is_custom_image: #{@is_custom_image}, is_restricted:"\
  " #{@is_restricted}, is_ultra_restricted: #{@is_ultra_restricted}, last_avatar_image_hash:"\
  " #{@last_avatar_image_hash}, last_name: #{@last_name}, memberships_count:"\
  " #{@memberships_count}, name: #{@name}, phone: #{@phone}, pronouns: #{@pronouns},"\
  " real_name: #{@real_name}, real_name_normalized: #{@real_name_normalized}, skype:"\
  " #{@skype}, status_default_emoji: #{@status_default_emoji}, status_default_text:"\
  " #{@status_default_text}, status_default_text_canonical: #{@status_default_text_canonical},"\
  " status_emoji: #{@status_emoji}, status_expiration: #{@status_expiration}, status_text:"\
  " #{@status_text}, status_text_canonical: #{@status_text_canonical}, team: #{@team}, title:"\
  " #{@title}, updated: #{@updated}, user_id: #{@user_id}, username: #{@username},"\
  " additional_properties: #{@additional_properties}>"
end