Class: Clerk::Models::Components::TestingToken

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

Overview

A Testing Token

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(object:, token:, expires_at:) ⇒ TestingToken

Returns a new instance of TestingToken.



24
25
26
27
28
# File 'lib/clerk/models/components/testingtoken.rb', line 24

def initialize(object:, token:, expires_at:)
  @object = object
  @token = token
  @expires_at = expires_at
end

Instance Method Details

#==(other) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/clerk/models/components/testingtoken.rb', line 31

def ==(other)
  return false unless other.is_a? self.class
  return false unless @object == other.object
  return false unless @token == other.token
  return false unless @expires_at == other.expires_at
  true
end