Class: Clerk::Models::Components::ActorToken
- Inherits:
-
Object
- Object
- Clerk::Models::Components::ActorToken
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/actortoken.rb
Overview
Success
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, status:, user_id:, actor:, created_at:, updated_at:, token: nil, url: nil) ⇒ ActorToken
constructor
A new instance of ActorToken.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, status:, user_id:, actor:, created_at:, updated_at:, token: nil, url: nil) ⇒ ActorToken
Returns a new instance of ActorToken.
37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/clerk/models/components/actortoken.rb', line 37 def initialize(object:, id:, status:, user_id:, actor:, created_at:, updated_at:, token: nil, url: nil) @object = object @id = id @status = status @user_id = user_id @actor = actor @created_at = created_at @updated_at = updated_at @token = token @url = url end |
Instance Method Details
#==(other) ⇒ Object
50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/clerk/models/components/actortoken.rb', line 50 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 @status == other.status return false unless @user_id == other.user_id return false unless @actor == other.actor return false unless @created_at == other.created_at return false unless @updated_at == other.updated_at return false unless @token == other.token return false unless @url == other.url true end |