Class: Clerk::Models::Components::JWTTemplate

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

Overview

List of JWT templates

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(object:, id:, name:, claims:, lifetime:, allowed_clock_skew:, custom_signing_key:, signing_algorithm:, created_at:, updated_at:) ⇒ JWTTemplate

Returns a new instance of JWTTemplate.



39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/clerk/models/components/jwttemplate.rb', line 39

def initialize(object:, id:, name:, claims:, lifetime:, allowed_clock_skew:, custom_signing_key:, signing_algorithm:, created_at:, updated_at:)
  @object = object
  @id = id
  @name = name
  @claims = claims
  @lifetime = lifetime
  @allowed_clock_skew = allowed_clock_skew
  @custom_signing_key = custom_signing_key
  @signing_algorithm = signing_algorithm
  @created_at = created_at
  @updated_at = updated_at
end

Instance Method Details

#==(other) ⇒ Object



53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/clerk/models/components/jwttemplate.rb', line 53

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 @name == other.name
  return false unless @claims == other.claims
  return false unless @lifetime == other.lifetime
  return false unless @allowed_clock_skew == other.allowed_clock_skew
  return false unless @custom_signing_key == other.custom_signing_key
  return false unless @signing_algorithm == other.signing_algorithm
  return false unless @created_at == other.created_at
  return false unless @updated_at == other.updated_at
  true
end