Class: Clerk::Models::Operations::ClerkIdpOauthAccessToken
- Inherits:
-
Object
- Object
- Clerk::Models::Operations::ClerkIdpOauthAccessToken
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/operations/clerkidpoauthaccesstoken.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, client_id:, subject:, scopes:, revoked:, expired:, created_at:, updated_at:, revocation_reason: nil, expiration: nil) ⇒ ClerkIdpOauthAccessToken
constructor
A new instance of ClerkIdpOauthAccessToken.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, client_id:, subject:, scopes:, revoked:, expired:, created_at:, updated_at:, revocation_reason: nil, expiration: nil) ⇒ ClerkIdpOauthAccessToken
Returns a new instance of ClerkIdpOauthAccessToken.
39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/clerk/models/operations/clerkidpoauthaccesstoken.rb', line 39 def initialize(object:, id:, client_id:, subject:, scopes:, revoked:, expired:, created_at:, updated_at:, revocation_reason: nil, expiration: nil) @object = object @id = id @client_id = client_id @subject = subject @scopes = scopes @revoked = revoked @expired = expired @created_at = created_at @updated_at = updated_at @revocation_reason = revocation_reason @expiration = expiration end |
Instance Method Details
#==(other) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/clerk/models/operations/clerkidpoauthaccesstoken.rb', line 54 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 @client_id == other.client_id return false unless @subject == other.subject return false unless @scopes == other.scopes return false unless @revoked == other.revoked return false unless @expired == other.expired return false unless @created_at == other.created_at return false unless @updated_at == other.updated_at return false unless @revocation_reason == other.revocation_reason return false unless @expiration == other.expiration true end |