Class: Clerk::Models::Operations::UpdateApiKeyRequestBody

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(scopes: nil, subject: nil, claims: nil, description: nil, seconds_until_expiration: nil) ⇒ UpdateApiKeyRequestBody

Returns a new instance of UpdateApiKeyRequestBody.



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

def initialize(scopes: nil, subject: nil, claims: nil, description: nil, seconds_until_expiration: nil)
  @scopes = scopes
  @subject = subject
  @claims = claims
  @description = description
  @seconds_until_expiration = seconds_until_expiration
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/clerk/models/operations/updateapikey_requestbody.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @scopes == other.scopes
  return false unless @subject == other.subject
  return false unless @claims == other.claims
  return false unless @description == other.description
  return false unless @seconds_until_expiration == other.seconds_until_expiration
  true
end