Class: Clerk::Models::Operations::Actor

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

Overview

The actor payload. It needs to include a sub property which should contain the ID of the actor. This whole payload will be also included in the JWT session token.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(sub:, additional_properties: nil) ⇒ Actor

Returns a new instance of Actor.



22
23
24
25
# File 'lib/clerk/models/operations/actor.rb', line 22

def initialize(sub:, additional_properties: nil)
  @sub = sub
  @additional_properties = additional_properties
end

Instance Method Details

#==(other) ⇒ Object



28
29
30
31
32
33
# File 'lib/clerk/models/operations/actor.rb', line 28

def ==(other)
  return false unless other.is_a? self.class
  return false unless @sub == other.sub
  return false unless @additional_properties == other.additional_properties
  true
end