Class: Clerk::Models::Components::Token
- Inherits:
-
Object
- Object
- Clerk::Models::Components::Token
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/token.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, jwt:) ⇒ Token
constructor
A new instance of Token.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, jwt:) ⇒ Token
Returns a new instance of Token.
23 24 25 26 |
# File 'lib/clerk/models/components/token.rb', line 23 def initialize(object:, jwt:) @object = object @jwt = jwt end |
Instance Method Details
#==(other) ⇒ Object
29 30 31 32 33 34 |
# File 'lib/clerk/models/components/token.rb', line 29 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @jwt == other.jwt true end |