Class: Clerk::Models::Components::SAMLConnectionAttributeMapping

Inherits:
Object
  • Object
show all
Includes:
Crystalline::MetadataFields
Defined in:
lib/clerk/models/components/samlconnectionattributemapping.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(user_id:, email_address:, first_name:, last_name:) ⇒ SAMLConnectionAttributeMapping

Returns a new instance of SAMLConnectionAttributeMapping.



25
26
27
28
29
30
# File 'lib/clerk/models/components/samlconnectionattributemapping.rb', line 25

def initialize(user_id:, email_address:, first_name:, last_name:)
  @user_id = user_id
  @email_address = email_address
  @first_name = first_name
  @last_name = last_name
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/clerk/models/components/samlconnectionattributemapping.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @user_id == other.user_id
  return false unless @email_address == other.email_address
  return false unless @first_name == other.first_name
  return false unless @last_name == other.last_name
  true
end