Class: WorkOS::AuthenticationPasswordFailedData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuthenticationPasswordFailedData
- Defined in:
- lib/workos/user_management/authentication_password_failed_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, error: :error }.freeze
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#error ⇒ Object
Returns the value of attribute error.
-
#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) ⇒ AuthenticationPasswordFailedData
constructor
A new instance of AuthenticationPasswordFailedData.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ AuthenticationPasswordFailedData
Returns a new instance of AuthenticationPasswordFailedData.
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/workos/user_management/authentication_password_failed_data.rb', line 26 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] @error = hash[:error] ? WorkOS::AuthenticationPasswordFailedDataError.new(hash[:error]) : nil end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
17 18 19 |
# File 'lib/workos/user_management/authentication_password_failed_data.rb', line 17 def email @email end |
#error ⇒ Object
Returns the value of attribute error.
17 18 19 |
# File 'lib/workos/user_management/authentication_password_failed_data.rb', line 17 def error @error end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
17 18 19 |
# File 'lib/workos/user_management/authentication_password_failed_data.rb', line 17 def ip_address @ip_address end |
#status ⇒ Object
Returns the value of attribute status.
17 18 19 |
# File 'lib/workos/user_management/authentication_password_failed_data.rb', line 17 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
17 18 19 |
# File 'lib/workos/user_management/authentication_password_failed_data.rb', line 17 def type @type end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
17 18 19 |
# File 'lib/workos/user_management/authentication_password_failed_data.rb', line 17 def user_agent @user_agent end |
#user_id ⇒ Object
Returns the value of attribute user_id.
17 18 19 |
# File 'lib/workos/user_management/authentication_password_failed_data.rb', line 17 def user_id @user_id end |