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