Class: Clerk::Models::Components::EnterpriseAccount

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, object:, provider:, active:, email_address:, protocol: nil, public_metadata: nil, verification: nil, first_name: nil, last_name: nil, provider_user_id: nil, enterprise_connection_id: nil, enterprise_connection: nil, last_authenticated_at: nil) ⇒ EnterpriseAccount

Returns a new instance of EnterpriseAccount.



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/clerk/models/components/enterpriseaccount.rb', line 48

def initialize(id:, object:, provider:, active:, email_address:, protocol: nil, public_metadata: nil, verification: nil, first_name: nil, last_name: nil, provider_user_id: nil, enterprise_connection_id: nil, enterprise_connection: nil, last_authenticated_at: nil)
  @id = id
  @object = object
  @provider = provider
  @active = active
  @email_address = email_address
  @protocol = protocol
   = 
  @verification = verification
  @first_name = first_name
  @last_name = last_name
  @provider_user_id = provider_user_id
  @enterprise_connection_id = enterprise_connection_id
  @enterprise_connection = enterprise_connection
  @last_authenticated_at = last_authenticated_at
end

Instance Method Details

#==(other) ⇒ Object



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/clerk/models/components/enterpriseaccount.rb', line 66

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 @protocol == other.protocol
  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 @enterprise_connection_id == other.enterprise_connection_id
  return false unless @enterprise_connection == other.enterprise_connection
  return false unless @last_authenticated_at == other.last_authenticated_at
  true
end