Class: WorkOS::AuthenticationOAuthSucceededData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuthenticationOAuthSucceededData
- Defined in:
- lib/workos/user_management/authentication_oauth_succeeded_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ type: :type, status: :status, ip_address: :ip_address, user_agent: :user_agent, user_id: :user_id, email: :email }.freeze
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AuthenticationOAuthSucceededData
constructor
A new instance of AuthenticationOAuthSucceededData.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ AuthenticationOAuthSucceededData
Returns a new instance of AuthenticationOAuthSucceededData.
24 25 26 27 28 29 30 31 32 |
# File 'lib/workos/user_management/authentication_oauth_succeeded_data.rb', line 24 def initialize(json) hash = self.class.normalize(json) @type = hash[:type] @status = hash[:status] @ip_address = hash[:ip_address] @user_agent = hash[:user_agent] @user_id = hash[:user_id] @email = hash[:email] end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
16 17 18 |
# File 'lib/workos/user_management/authentication_oauth_succeeded_data.rb', line 16 def email @email end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
16 17 18 |
# File 'lib/workos/user_management/authentication_oauth_succeeded_data.rb', line 16 def ip_address @ip_address end |
#status ⇒ Object
Returns the value of attribute status.
16 17 18 |
# File 'lib/workos/user_management/authentication_oauth_succeeded_data.rb', line 16 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
16 17 18 |
# File 'lib/workos/user_management/authentication_oauth_succeeded_data.rb', line 16 def type @type end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
16 17 18 |
# File 'lib/workos/user_management/authentication_oauth_succeeded_data.rb', line 16 def user_agent @user_agent end |
#user_id ⇒ Object
Returns the value of attribute user_id.
16 17 18 |
# File 'lib/workos/user_management/authentication_oauth_succeeded_data.rb', line 16 def user_id @user_id end |