Class: Clerk::Models::Components::Client

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

Overview

Success

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(object:, id:, session_ids:, sessions:, updated_at:, created_at:, sign_in_id: nil, sign_up_id: nil, last_active_session_id: nil, last_authentication_strategy: nil) ⇒ Client

Returns a new instance of Client.



43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/clerk/models/components/client.rb', line 43

def initialize(object:, id:, session_ids:, sessions:, updated_at:, created_at:, sign_in_id: nil, sign_up_id: nil, last_active_session_id: nil, last_authentication_strategy: nil)
  @object = object
  @id = id
  @session_ids = session_ids
  @sessions = sessions
  @updated_at = updated_at
  @created_at = created_at
  @sign_in_id = 
  @sign_up_id = 
  @last_active_session_id = last_active_session_id
  @last_authentication_strategy = last_authentication_strategy
end

Instance Method Details

#==(other) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/clerk/models/components/client.rb', line 57

def ==(other)
  return false unless other.is_a? self.class
  return false unless @object == other.object
  return false unless @id == other.id
  return false unless @session_ids == other.session_ids
  return false unless @sessions == other.sessions
  return false unless @updated_at == other.updated_at
  return false unless @created_at == other.created_at
  return false unless @sign_in_id == other.
  return false unless @sign_up_id == other.
  return false unless @last_active_session_id == other.last_active_session_id
  return false unless @last_authentication_strategy == other.last_authentication_strategy
  true
end