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