Class: Clerk::Models::Components::InvitationRevoked

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

Overview

Success

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(object:, id:, email_address:, public_metadata:, status:, created_at:, updated_at:, revoked: nil, url: nil, expires_at: nil) ⇒ InvitationRevoked

Returns a new instance of InvitationRevoked.



40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/clerk/models/components/invitation_revoked.rb', line 40

def initialize(object:, id:, email_address:, public_metadata:, status:, created_at:, updated_at:, revoked: nil, url: nil, expires_at: nil)
  @object = object
  @id = id
  @email_address = email_address
   = 
  @status = status
  @created_at = created_at
  @updated_at = updated_at
  @revoked = revoked
  @url = url
  @expires_at = expires_at
end

Instance Method Details

#==(other) ⇒ Object



54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/clerk/models/components/invitation_revoked.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 @email_address == other.email_address
  return false unless  == other.
  return false unless @status == other.status
  return false unless @created_at == other.created_at
  return false unless @updated_at == other.updated_at
  return false unless @revoked == other.revoked
  return false unless @url == other.url
  return false unless @expires_at == other.expires_at
  true
end