Skip to content

Commit 34d0e48

Browse files
author
WorkOS Bot
committed
Translated from node PR #1273
1 parent 948361c commit 34d0e48

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/workos/user.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ module WorkOS
77
class User
88
include HashProvider
99

10-
attr_accessor :id, :email, :first_name, :last_name, :email_verified,
10+
attr_accessor :id, :email, :first_name, :last_name, :email_verified, :email_optional
1111
:profile_picture_url, :last_sign_in_at, :created_at, :updated_at
1212

1313
def initialize(json)
1414
hash = JSON.parse(json, symbolize_names: true)
1515

1616
@id = hash[:id]
1717
@email = hash[:email]
18+
@email_optional = hash[:email_optional]
1819
@first_name = hash[:first_name]
1920
@last_name = hash[:last_name]
2021
@email_verified = hash[:email_verified]
@@ -28,6 +29,7 @@ def to_json(*)
2829
{
2930
id: id,
3031
email: email,
32+
email_optional: email_optional,
3133
first_name: first_name,
3234
last_name: last_name,
3335
email_verified: email_verified,

lib/workos/user_management.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ def update_user(
234234
password: nil,
235235
password_hash: nil,
236236
password_hash_type: nil
237-
)
237+
,
238+
options: nil,)
238239
request = put_request(
239240
path: "/user_management/users/#{id}",
240241
body: {

0 commit comments

Comments
 (0)