Class: Clerk::Models::Components::SAMLAccount
- Inherits:
-
Object
- Object
- Clerk::Models::Components::SAMLAccount
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/samlaccount.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id:, object:, provider:, active:, email_address:, public_metadata: nil, verification: nil, first_name: nil, last_name: nil, provider_user_id: nil, last_authenticated_at: nil, saml_connection: nil) ⇒ SAMLAccount
constructor
A new instance of SAMLAccount.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id:, object:, provider:, active:, email_address:, public_metadata: nil, verification: nil, first_name: nil, last_name: nil, provider_user_id: nil, last_authenticated_at: nil, saml_connection: nil) ⇒ SAMLAccount
Returns a new instance of SAMLAccount.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/clerk/models/components/samlaccount.rb', line 43 def initialize(id:, object:, provider:, active:, email_address:, public_metadata: nil, verification: nil, first_name: nil, last_name: nil, provider_user_id: nil, last_authenticated_at: nil, saml_connection: nil) @id = id @object = object @provider = provider @active = active @email_address = email_address = @verification = verification @first_name = first_name @last_name = last_name @provider_user_id = provider_user_id @last_authenticated_at = last_authenticated_at @saml_connection = saml_connection end |
Instance Method Details
#==(other) ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/clerk/models/components/samlaccount.rb', line 59 def ==(other) return false unless other.is_a? self.class return false unless @id == other.id return false unless @object == other.object return false unless @provider == other.provider return false unless @active == other.active return false unless @email_address == other.email_address return false unless == other. return false unless @verification == other.verification return false unless @first_name == other.first_name return false unless @last_name == other.last_name return false unless @provider_user_id == other.provider_user_id return false unless @last_authenticated_at == other.last_authenticated_at return false unless @saml_connection == other.saml_connection true end |