workos 2.16.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/Gemfile.lock +5 -14
  4. data/lib/workos/authentication_factor_and_challenge.rb +31 -0
  5. data/lib/workos/authentication_response.rb +27 -0
  6. data/lib/workos/client.rb +1 -1
  7. data/lib/workos/configuration.rb +1 -1
  8. data/lib/workos/invitation.rb +68 -0
  9. data/lib/workos/organization_membership.rb +50 -0
  10. data/lib/workos/sso.rb +1 -1
  11. data/lib/workos/types/invitation_struct.rb +20 -0
  12. data/lib/workos/types/magic_auth_challenge_struct.rb +12 -0
  13. data/lib/workos/types/organization_membership_struct.rb +15 -0
  14. data/lib/workos/types/provider_enum.rb +1 -0
  15. data/lib/workos/types/user_struct.rb +17 -0
  16. data/lib/workos/types.rb +9 -5
  17. data/lib/workos/user.rb +57 -0
  18. data/lib/workos/user_and_token.rb +29 -0
  19. data/lib/workos/user_management.rb +1008 -0
  20. data/lib/workos/user_response.rb +25 -0
  21. data/lib/workos/version.rb +1 -1
  22. data/lib/workos.rb +35 -28
  23. data/spec/lib/workos/sso_spec.rb +8 -8
  24. data/spec/lib/workos/user_management_spec.rb +1092 -0
  25. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/invalid.yml +84 -0
  26. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid.yml +82 -0
  27. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/invalid.yml +83 -0
  28. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/valid.yml +81 -0
  29. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/invalid.yml +82 -0
  30. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/valid.yml +82 -0
  31. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/invalid.yml +81 -0
  32. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/valid.yml +82 -0
  33. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/invalid.yml +82 -0
  34. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/valid.yml +82 -0
  35. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/invalid.yml +83 -0
  36. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/valid.yml +81 -0
  37. data/spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/invalid.yml +82 -0
  38. data/spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/valid.yml +82 -0
  39. data/spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/invalid.yml +83 -0
  40. data/spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid.yml +82 -0
  41. data/spec/support/fixtures/vcr_cassettes/user_management/create_user_invalid.yml +83 -0
  42. data/spec/support/fixtures/vcr_cassettes/user_management/create_user_valid.yml +82 -0
  43. data/spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/invalid.yml +82 -0
  44. data/spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/valid.yml +78 -0
  45. data/spec/support/fixtures/vcr_cassettes/user_management/delete_user/invalid.yml +82 -0
  46. data/spec/support/fixtures/vcr_cassettes/user_management/delete_user/valid.yml +78 -0
  47. data/spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/invalid.yml +82 -0
  48. data/spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/valid.yml +82 -0
  49. data/spec/support/fixtures/vcr_cassettes/user_management/get_invitation/invalid.yml +82 -0
  50. data/spec/support/fixtures/vcr_cassettes/user_management/get_invitation/valid.yml +82 -0
  51. data/spec/support/fixtures/vcr_cassettes/user_management/get_organization_membership.yml +82 -0
  52. data/spec/support/fixtures/vcr_cassettes/user_management/get_user.yml +82 -0
  53. data/spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/invalid.yml +82 -0
  54. data/spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/valid.yml +82 -0
  55. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_after.yml +83 -0
  56. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_before.yml +83 -0
  57. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_limit.yml +83 -0
  58. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_no_options.yml +83 -0
  59. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_organization_id.yml +83 -0
  60. data/spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/no_options.yml +82 -0
  61. data/spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_options.yml +82 -0
  62. data/spec/support/fixtures/vcr_cassettes/user_management/list_users/no_options.yml +82 -0
  63. data/spec/support/fixtures/vcr_cassettes/user_management/list_users/with_options.yml +82 -0
  64. data/spec/support/fixtures/vcr_cassettes/user_management/reset_password/invalid.yml +82 -0
  65. data/spec/support/fixtures/vcr_cassettes/user_management/reset_password/valid.yml +82 -0
  66. data/spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/invalid.yml +82 -0
  67. data/spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/valid.yml +82 -0
  68. data/spec/support/fixtures/vcr_cassettes/user_management/send_invitation/invalid.yml +82 -0
  69. data/spec/support/fixtures/vcr_cassettes/user_management/send_invitation/valid.yml +82 -0
  70. data/spec/support/fixtures/vcr_cassettes/user_management/send_magic_auth_code/valid.yml +82 -0
  71. data/spec/support/fixtures/vcr_cassettes/user_management/send_password_reset_email/invalid.yml +83 -0
  72. data/spec/support/fixtures/vcr_cassettes/user_management/send_password_reset_email/valid.yml +82 -0
  73. data/spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/invalid.yml +82 -0
  74. data/spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/valid.yml +82 -0
  75. data/spec/support/fixtures/vcr_cassettes/user_management/update_user/invalid.yml +82 -0
  76. data/spec/support/fixtures/vcr_cassettes/user_management/update_user/valid.yml +82 -0
  77. data/spec/support/fixtures/vcr_cassettes/user_management/update_user_password/invalid.yml +82 -0
  78. data/spec/support/fixtures/vcr_cassettes/user_management/update_user_password/valid.yml +82 -0
  79. data/spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_code.yml +83 -0
  80. data/spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_magic_auth_challenge.yml +82 -0
  81. data/spec/support/fixtures/vcr_cassettes/user_management/verify_email/valid.yml +82 -0
  82. data/workos.gemspec +0 -2
  83. metadata +132 -55
  84. data/bin/docs +0 -5
  85. data/docs/WorkOS/APIError.html +0 -160
  86. data/docs/WorkOS/AuditLog.html +0 -235
  87. data/docs/WorkOS/AuditTrail.html +0 -235
  88. data/docs/WorkOS/AuthenticationError.html +0 -160
  89. data/docs/WorkOS/Base.html +0 -287
  90. data/docs/WorkOS/Client.html +0 -504
  91. data/docs/WorkOS/InvalidRequestError.html +0 -160
  92. data/docs/WorkOS/Profile.html +0 -788
  93. data/docs/WorkOS/RequestError.html +0 -135
  94. data/docs/WorkOS/SSO.html +0 -691
  95. data/docs/WorkOS/Types/ProfileStruct.html +0 -135
  96. data/docs/WorkOS/Types/Provider.html +0 -135
  97. data/docs/WorkOS/Types.html +0 -128
  98. data/docs/WorkOS/WorkOSError.html +0 -447
  99. data/docs/WorkOS.html +0 -324
  100. data/docs/class_list.html +0 -51
  101. data/docs/css/common.css +0 -1
  102. data/docs/css/full_list.css +0 -58
  103. data/docs/css/style.css +0 -496
  104. data/docs/file.README.html +0 -252
  105. data/docs/file_list.html +0 -56
  106. data/docs/frames.html +0 -17
  107. data/docs/index.html +0 -250
  108. data/docs/js/app.js +0 -314
  109. data/docs/js/full_list.js +0 -216
  110. data/docs/js/jquery.js +0 -4
  111. data/docs/method_list.html +0 -267
  112. data/docs/top-level-namespace.html +0 -110
  113. data/lib/workos/audit_trail.rb +0 -111
  114. data/spec/lib/workos/audit_trail_spec.rb +0 -146
@@ -1,788 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: WorkOS::Profile
8
-
9
- &mdash; Documentation by YARD 0.9.22
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "WorkOS::Profile";
19
- relpath = '../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../_index.html">Index (P)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../WorkOS.html" title="WorkOS (module)">WorkOS</a></span></span>
41
- &raquo;
42
- <span class="title">Profile</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: WorkOS::Profile
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">Object</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">WorkOS::Profile</li>
78
-
79
- </ul>
80
- <a href="#" class="inheritanceTree">show all</a>
81
-
82
- </dd>
83
- </dl>
84
-
85
-
86
-
87
-
88
- <dl>
89
- <dt>Extended by:</dt>
90
- <dd>T::Sig</dd>
91
- </dl>
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
- <dl>
101
- <dt>Defined in:</dt>
102
- <dd>lib/workos/profile.rb</dd>
103
- </dl>
104
-
105
- </div>
106
-
107
- <h2>Overview</h2><div class="docstring">
108
- <div class="discussion">
109
-
110
- <p>The Profile class provides a lighweight wrapper around a normalized response from the various IDPs WorkOS supports as part of the SSO integration. This class is not meant ot be instantiated in user space, and is instantiated internally but exposed.</p>
111
-
112
-
113
- </div>
114
- </div>
115
- <div class="tags">
116
-
117
-
118
- </div>
119
-
120
-
121
-
122
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
123
- <ul class="summary">
124
-
125
- <li class="public ">
126
- <span class="summary_signature">
127
-
128
- <a href="#connection_type-instance_method" title="#connection_type (instance method)">#<strong>connection_type</strong> &#x21d2; Object </a>
129
-
130
-
131
-
132
- </span>
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- <span class="summary_desc"><div class='inline'>
146
- <p>Returns the value of attribute connection_type.</p>
147
- </div></span>
148
-
149
- </li>
150
-
151
-
152
- <li class="public ">
153
- <span class="summary_signature">
154
-
155
- <a href="#email-instance_method" title="#email (instance method)">#<strong>email</strong> &#x21d2; Object </a>
156
-
157
-
158
-
159
- </span>
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
- <span class="summary_desc"><div class='inline'>
173
- <p>Returns the value of attribute email.</p>
174
- </div></span>
175
-
176
- </li>
177
-
178
-
179
- <li class="public ">
180
- <span class="summary_signature">
181
-
182
- <a href="#first_name-instance_method" title="#first_name (instance method)">#<strong>first_name</strong> &#x21d2; Object </a>
183
-
184
-
185
-
186
- </span>
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
- <span class="summary_desc"><div class='inline'>
200
- <p>Returns the value of attribute first_name.</p>
201
- </div></span>
202
-
203
- </li>
204
-
205
-
206
- <li class="public ">
207
- <span class="summary_signature">
208
-
209
- <a href="#id-instance_method" title="#id (instance method)">#<strong>id</strong> &#x21d2; Object </a>
210
-
211
-
212
-
213
- </span>
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
- <span class="summary_desc"><div class='inline'>
227
- <p>Returns the value of attribute id.</p>
228
- </div></span>
229
-
230
- </li>
231
-
232
-
233
- <li class="public ">
234
- <span class="summary_signature">
235
-
236
- <a href="#idp_id-instance_method" title="#idp_id (instance method)">#<strong>idp_id</strong> &#x21d2; Object </a>
237
-
238
-
239
-
240
- </span>
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
-
253
- <span class="summary_desc"><div class='inline'>
254
- <p>Returns the value of attribute idp_id.</p>
255
- </div></span>
256
-
257
- </li>
258
-
259
-
260
- <li class="public ">
261
- <span class="summary_signature">
262
-
263
- <a href="#last_name-instance_method" title="#last_name (instance method)">#<strong>last_name</strong> &#x21d2; Object </a>
264
-
265
-
266
-
267
- </span>
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
-
279
-
280
- <span class="summary_desc"><div class='inline'>
281
- <p>Returns the value of attribute last_name.</p>
282
- </div></span>
283
-
284
- </li>
285
-
286
-
287
- </ul>
288
-
289
-
290
-
291
-
292
-
293
- <h2>
294
- Instance Method Summary
295
- <small><a href="#" class="summary_toggle">collapse</a></small>
296
- </h2>
297
-
298
- <ul class="summary">
299
-
300
- <li class="public ">
301
- <span class="summary_signature">
302
-
303
- <a href="#full_name-instance_method" title="#full_name (instance method)">#<strong>full_name</strong> &#x21d2; Object </a>
304
-
305
-
306
-
307
- </span>
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
-
316
-
317
- <span class="summary_desc"><div class='inline'></div></span>
318
-
319
- </li>
320
-
321
-
322
- <li class="public ">
323
- <span class="summary_signature">
324
-
325
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(profile_json) &#x21d2; Profile </a>
326
-
327
-
328
-
329
- </span>
330
-
331
-
332
- <span class="note title constructor">constructor</span>
333
-
334
-
335
-
336
-
337
-
338
-
339
-
340
-
341
- <span class="summary_desc"><div class='inline'>
342
- <p>A new instance of Profile.</p>
343
- </div></span>
344
-
345
- </li>
346
-
347
-
348
- <li class="public ">
349
- <span class="summary_signature">
350
-
351
- <a href="#to_json-instance_method" title="#to_json (instance method)">#<strong>to_json</strong> &#x21d2; Object </a>
352
-
353
-
354
-
355
- </span>
356
-
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
-
365
- <span class="summary_desc"><div class='inline'></div></span>
366
-
367
- </li>
368
-
369
-
370
- </ul>
371
-
372
-
373
-
374
- <div id="constructor_details" class="method_details_list">
375
- <h2>Constructor Details</h2>
376
-
377
- <div class="method_details first">
378
- <h3 class="signature first" id="initialize-instance_method">
379
-
380
- #<strong>initialize</strong>(profile_json) &#x21d2; <tt><span class='object_link'><a href="" title="WorkOS::Profile (class)">Profile</a></span></tt>
381
-
382
-
383
-
384
-
385
-
386
- </h3><div class="docstring">
387
- <div class="discussion">
388
-
389
- <p>Returns a new instance of Profile.</p>
390
-
391
-
392
- </div>
393
- </div>
394
- <div class="tags">
395
-
396
-
397
- </div><table class="source_code">
398
- <tr>
399
- <td>
400
- <pre class="lines">
401
-
402
-
403
- 21
404
- 22
405
- 23
406
- 24
407
- 25
408
- 26
409
- 27
410
- 28
411
- 29
412
- 30</pre>
413
- </td>
414
- <td>
415
- <pre class="code"><span class="info file"># File 'lib/workos/profile.rb', line 21</span>
416
-
417
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_profile_json'>profile_json</span><span class='rparen'>)</span>
418
- <span class='id identifier rubyid_raw'>raw</span> <span class='op'>=</span> <span class='id identifier rubyid_parse_json'>parse_json</span><span class='lparen'>(</span><span class='id identifier rubyid_profile_json'>profile_json</span><span class='rparen'>)</span>
419
-
420
- <span class='ivar'>@id</span> <span class='op'>=</span> <span class='const'>T</span><span class='period'>.</span><span class='id identifier rubyid_let'>let</span><span class='lparen'>(</span><span class='id identifier rubyid_raw'>raw</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='const'>String</span><span class='rparen'>)</span>
421
- <span class='ivar'>@email</span> <span class='op'>=</span> <span class='const'>T</span><span class='period'>.</span><span class='id identifier rubyid_let'>let</span><span class='lparen'>(</span><span class='id identifier rubyid_raw'>raw</span><span class='period'>.</span><span class='id identifier rubyid_email'>email</span><span class='comma'>,</span> <span class='const'>String</span><span class='rparen'>)</span>
422
- <span class='ivar'>@first_name</span> <span class='op'>=</span> <span class='const'>T</span><span class='period'>.</span><span class='id identifier rubyid_let'>let</span><span class='lparen'>(</span><span class='id identifier rubyid_raw'>raw</span><span class='period'>.</span><span class='id identifier rubyid_first_name'>first_name</span><span class='comma'>,</span> <span class='const'>String</span><span class='rparen'>)</span>
423
- <span class='ivar'>@last_name</span> <span class='op'>=</span> <span class='const'>T</span><span class='period'>.</span><span class='id identifier rubyid_let'>let</span><span class='lparen'>(</span><span class='id identifier rubyid_raw'>raw</span><span class='period'>.</span><span class='id identifier rubyid_last_name'>last_name</span><span class='comma'>,</span> <span class='const'>String</span><span class='rparen'>)</span>
424
- <span class='ivar'>@connection_type</span> <span class='op'>=</span> <span class='const'>T</span><span class='period'>.</span><span class='id identifier rubyid_let'>let</span><span class='lparen'>(</span><span class='id identifier rubyid_raw'>raw</span><span class='period'>.</span><span class='id identifier rubyid_connection_type'>connection_type</span><span class='comma'>,</span> <span class='const'>String</span><span class='rparen'>)</span>
425
- <span class='ivar'>@idp_id</span> <span class='op'>=</span> <span class='const'>T</span><span class='period'>.</span><span class='id identifier rubyid_let'>let</span><span class='lparen'>(</span><span class='id identifier rubyid_raw'>raw</span><span class='period'>.</span><span class='id identifier rubyid_idp_id'>idp_id</span><span class='comma'>,</span> <span class='const'>String</span><span class='rparen'>)</span>
426
- <span class='kw'>end</span></pre>
427
- </td>
428
- </tr>
429
- </table>
430
- </div>
431
-
432
- </div>
433
-
434
- <div id="instance_attr_details" class="attr_details">
435
- <h2>Instance Attribute Details</h2>
436
-
437
-
438
- <span id="connection_type=-instance_method"></span>
439
- <div class="method_details first">
440
- <h3 class="signature first" id="connection_type-instance_method">
441
-
442
- #<strong>connection_type</strong> &#x21d2; <tt>Object</tt>
443
-
444
-
445
-
446
-
447
-
448
- </h3><div class="docstring">
449
- <div class="discussion">
450
-
451
- <p>Returns the value of attribute connection_type.</p>
452
-
453
-
454
- </div>
455
- </div>
456
- <div class="tags">
457
-
458
-
459
- </div><table class="source_code">
460
- <tr>
461
- <td>
462
- <pre class="lines">
463
-
464
-
465
- 17
466
- 18
467
- 19</pre>
468
- </td>
469
- <td>
470
- <pre class="code"><span class="info file"># File 'lib/workos/profile.rb', line 17</span>
471
-
472
- <span class='kw'>def</span> <span class='id identifier rubyid_connection_type'>connection_type</span>
473
- <span class='ivar'>@connection_type</span>
474
- <span class='kw'>end</span></pre>
475
- </td>
476
- </tr>
477
- </table>
478
- </div>
479
-
480
-
481
- <span id="email=-instance_method"></span>
482
- <div class="method_details ">
483
- <h3 class="signature " id="email-instance_method">
484
-
485
- #<strong>email</strong> &#x21d2; <tt>Object</tt>
486
-
487
-
488
-
489
-
490
-
491
- </h3><div class="docstring">
492
- <div class="discussion">
493
-
494
- <p>Returns the value of attribute email.</p>
495
-
496
-
497
- </div>
498
- </div>
499
- <div class="tags">
500
-
501
-
502
- </div><table class="source_code">
503
- <tr>
504
- <td>
505
- <pre class="lines">
506
-
507
-
508
- 17
509
- 18
510
- 19</pre>
511
- </td>
512
- <td>
513
- <pre class="code"><span class="info file"># File 'lib/workos/profile.rb', line 17</span>
514
-
515
- <span class='kw'>def</span> <span class='id identifier rubyid_email'>email</span>
516
- <span class='ivar'>@email</span>
517
- <span class='kw'>end</span></pre>
518
- </td>
519
- </tr>
520
- </table>
521
- </div>
522
-
523
-
524
- <span id="first_name=-instance_method"></span>
525
- <div class="method_details ">
526
- <h3 class="signature " id="first_name-instance_method">
527
-
528
- #<strong>first_name</strong> &#x21d2; <tt>Object</tt>
529
-
530
-
531
-
532
-
533
-
534
- </h3><div class="docstring">
535
- <div class="discussion">
536
-
537
- <p>Returns the value of attribute first_name.</p>
538
-
539
-
540
- </div>
541
- </div>
542
- <div class="tags">
543
-
544
-
545
- </div><table class="source_code">
546
- <tr>
547
- <td>
548
- <pre class="lines">
549
-
550
-
551
- 17
552
- 18
553
- 19</pre>
554
- </td>
555
- <td>
556
- <pre class="code"><span class="info file"># File 'lib/workos/profile.rb', line 17</span>
557
-
558
- <span class='kw'>def</span> <span class='id identifier rubyid_first_name'>first_name</span>
559
- <span class='ivar'>@first_name</span>
560
- <span class='kw'>end</span></pre>
561
- </td>
562
- </tr>
563
- </table>
564
- </div>
565
-
566
-
567
- <span id="id=-instance_method"></span>
568
- <div class="method_details ">
569
- <h3 class="signature " id="id-instance_method">
570
-
571
- #<strong>id</strong> &#x21d2; <tt>Object</tt>
572
-
573
-
574
-
575
-
576
-
577
- </h3><div class="docstring">
578
- <div class="discussion">
579
-
580
- <p>Returns the value of attribute id.</p>
581
-
582
-
583
- </div>
584
- </div>
585
- <div class="tags">
586
-
587
-
588
- </div><table class="source_code">
589
- <tr>
590
- <td>
591
- <pre class="lines">
592
-
593
-
594
- 17
595
- 18
596
- 19</pre>
597
- </td>
598
- <td>
599
- <pre class="code"><span class="info file"># File 'lib/workos/profile.rb', line 17</span>
600
-
601
- <span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
602
- <span class='ivar'>@id</span>
603
- <span class='kw'>end</span></pre>
604
- </td>
605
- </tr>
606
- </table>
607
- </div>
608
-
609
-
610
- <span id="idp_id=-instance_method"></span>
611
- <div class="method_details ">
612
- <h3 class="signature " id="idp_id-instance_method">
613
-
614
- #<strong>idp_id</strong> &#x21d2; <tt>Object</tt>
615
-
616
-
617
-
618
-
619
-
620
- </h3><div class="docstring">
621
- <div class="discussion">
622
-
623
- <p>Returns the value of attribute idp_id.</p>
624
-
625
-
626
- </div>
627
- </div>
628
- <div class="tags">
629
-
630
-
631
- </div><table class="source_code">
632
- <tr>
633
- <td>
634
- <pre class="lines">
635
-
636
-
637
- 17
638
- 18
639
- 19</pre>
640
- </td>
641
- <td>
642
- <pre class="code"><span class="info file"># File 'lib/workos/profile.rb', line 17</span>
643
-
644
- <span class='kw'>def</span> <span class='id identifier rubyid_idp_id'>idp_id</span>
645
- <span class='ivar'>@idp_id</span>
646
- <span class='kw'>end</span></pre>
647
- </td>
648
- </tr>
649
- </table>
650
- </div>
651
-
652
-
653
- <span id="last_name=-instance_method"></span>
654
- <div class="method_details ">
655
- <h3 class="signature " id="last_name-instance_method">
656
-
657
- #<strong>last_name</strong> &#x21d2; <tt>Object</tt>
658
-
659
-
660
-
661
-
662
-
663
- </h3><div class="docstring">
664
- <div class="discussion">
665
-
666
- <p>Returns the value of attribute last_name.</p>
667
-
668
-
669
- </div>
670
- </div>
671
- <div class="tags">
672
-
673
-
674
- </div><table class="source_code">
675
- <tr>
676
- <td>
677
- <pre class="lines">
678
-
679
-
680
- 17
681
- 18
682
- 19</pre>
683
- </td>
684
- <td>
685
- <pre class="code"><span class="info file"># File 'lib/workos/profile.rb', line 17</span>
686
-
687
- <span class='kw'>def</span> <span class='id identifier rubyid_last_name'>last_name</span>
688
- <span class='ivar'>@last_name</span>
689
- <span class='kw'>end</span></pre>
690
- </td>
691
- </tr>
692
- </table>
693
- </div>
694
-
695
- </div>
696
-
697
-
698
- <div id="instance_method_details" class="method_details_list">
699
- <h2>Instance Method Details</h2>
700
-
701
-
702
- <div class="method_details first">
703
- <h3 class="signature first" id="full_name-instance_method">
704
-
705
- #<strong>full_name</strong> &#x21d2; <tt>Object</tt>
706
-
707
-
708
-
709
-
710
-
711
- </h3><table class="source_code">
712
- <tr>
713
- <td>
714
- <pre class="lines">
715
-
716
-
717
- 33
718
- 34
719
- 35</pre>
720
- </td>
721
- <td>
722
- <pre class="code"><span class="info file"># File 'lib/workos/profile.rb', line 33</span>
723
-
724
- <span class='kw'>def</span> <span class='id identifier rubyid_full_name'>full_name</span>
725
- <span class='lbracket'>[</span><span class='id identifier rubyid_first_name'>first_name</span><span class='comma'>,</span> <span class='id identifier rubyid_last_name'>last_name</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
726
- <span class='kw'>end</span></pre>
727
- </td>
728
- </tr>
729
- </table>
730
- </div>
731
-
732
- <div class="method_details ">
733
- <h3 class="signature " id="to_json-instance_method">
734
-
735
- #<strong>to_json</strong> &#x21d2; <tt>Object</tt>
736
-
737
-
738
-
739
-
740
-
741
- </h3><table class="source_code">
742
- <tr>
743
- <td>
744
- <pre class="lines">
745
-
746
-
747
- 37
748
- 38
749
- 39
750
- 40
751
- 41
752
- 42
753
- 43
754
- 44
755
- 45
756
- 46</pre>
757
- </td>
758
- <td>
759
- <pre class="code"><span class="info file"># File 'lib/workos/profile.rb', line 37</span>
760
-
761
- <span class='kw'>def</span> <span class='id identifier rubyid_to_json'>to_json</span><span class='lparen'>(</span><span class='op'>*</span><span class='rparen'>)</span>
762
- <span class='lbrace'>{</span>
763
- <span class='label'>id:</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span>
764
- <span class='label'>email:</span> <span class='id identifier rubyid_email'>email</span><span class='comma'>,</span>
765
- <span class='label'>first_name:</span> <span class='id identifier rubyid_first_name'>first_name</span><span class='comma'>,</span>
766
- <span class='label'>last_name:</span> <span class='id identifier rubyid_last_name'>last_name</span><span class='comma'>,</span>
767
- <span class='label'>connection_type:</span> <span class='id identifier rubyid_connection_type'>connection_type</span><span class='comma'>,</span>
768
- <span class='label'>idp_id:</span> <span class='id identifier rubyid_idp_id'>idp_id</span><span class='comma'>,</span>
769
- <span class='rbrace'>}</span>
770
- <span class='kw'>end</span></pre>
771
- </td>
772
- </tr>
773
- </table>
774
- </div>
775
-
776
- </div>
777
-
778
- </div>
779
-
780
- <div id="footer">
781
- Generated on Tue Apr 7 22:21:08 2020 by
782
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
783
- 0.9.22 (ruby-2.7.1).
784
- </div>
785
-
786
- </div>
787
- </body>
788
- </html>