Class: Clerk::Models::Operations::CreateM2MTokenResponseBody

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

Overview

201 Created

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(object:, id:, subject:, token:, revoked:, expired:, created_at:, updated_at:, scopes: nil, revocation_reason: nil, expiration: nil, last_used_at: nil, claims: nil) ⇒ CreateM2MTokenResponseBody

Returns a new instance of CreateM2MTokenResponseBody.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/clerk/models/operations/createm2mtoken_responsebody.rb', line 43

def initialize(object:, id:, subject:, token:, revoked:, expired:, created_at:, updated_at:, scopes: nil, revocation_reason: nil, expiration: nil, last_used_at: nil, claims: nil)
  @object = object
  @id = id
  @subject = subject
  @token = token
  @revoked = revoked
  @expired = expired
  @created_at = created_at
  @updated_at = updated_at
  @scopes = scopes
  @revocation_reason = revocation_reason
  @expiration = expiration
  @last_used_at = last_used_at
  @claims = claims
end

Instance Method Details

#==(other) ⇒ Object



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/clerk/models/operations/createm2mtoken_responsebody.rb', line 60

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 @subject == other.subject
  return false unless @token == other.token
  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 @scopes == other.scopes
  return false unless @revocation_reason == other.revocation_reason
  return false unless @expiration == other.expiration
  return false unless @last_used_at == other.last_used_at
  return false unless @claims == other.claims
  true
end