Class: Clerk::Models::Operations::CreateApiKeyRequest
- Inherits:
-
Object
- Object
- Clerk::Models::Operations::CreateApiKeyRequest
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/operations/createapikey_request.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name:, subject:, scopes: nil, type: 'api_key', description: nil, claims: nil, created_by: nil, seconds_until_expiration: nil) ⇒ CreateApiKeyRequest
constructor
A new instance of CreateApiKeyRequest.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(name:, subject:, scopes: nil, type: 'api_key', description: nil, claims: nil, created_by: nil, seconds_until_expiration: nil) ⇒ CreateApiKeyRequest
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/clerk/models/operations/createapikey_request.rb', line 33 def initialize(name:, subject:, scopes: nil, type: 'api_key', description: nil, claims: nil, created_by: nil, seconds_until_expiration: nil) @name = name @subject = subject @scopes = scopes @type = type @description = description @claims = claims @created_by = created_by @seconds_until_expiration = seconds_until_expiration end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/clerk/models/operations/createapikey_request.rb', line 45 def ==(other) return false unless other.is_a? self.class return false unless @name == other.name return false unless @subject == other.subject return false unless @scopes == other.scopes return false unless @type == other.type return false unless @description == other.description return false unless @claims == other.claims return false unless @created_by == other.created_by return false unless @seconds_until_expiration == other.seconds_until_expiration true end |