Class: Clerk::Models::Components::ParsedUserInfo
- Inherits:
-
Object
- Object
- Clerk::Models::Components::ParsedUserInfo
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/parsed_user_info.rb
Overview
The user information parsed from the IdP response
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(email_address: nil, first_name: nil, last_name: nil, user_id: nil) ⇒ ParsedUserInfo
constructor
A new instance of ParsedUserInfo.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(email_address: nil, first_name: nil, last_name: nil, user_id: nil) ⇒ ParsedUserInfo
Returns a new instance of ParsedUserInfo.
25 26 27 28 29 30 |
# File 'lib/clerk/models/components/parsed_user_info.rb', line 25 def initialize(email_address: nil, first_name: nil, last_name: nil, user_id: nil) @email_address = email_address @first_name = first_name @last_name = last_name @user_id = user_id end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/clerk/models/components/parsed_user_info.rb', line 33 def ==(other) return false unless other.is_a? self.class return false unless @email_address == other.email_address return false unless @first_name == other.first_name return false unless @last_name == other.last_name return false unless @user_id == other.user_id true end |