Class: Clerk::Models::Components::BlocklistIdentifier
- Inherits:
-
Object
- Object
- Clerk::Models::Components::BlocklistIdentifier
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/blocklistidentifier.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object: nil, id: nil, identifier: nil, identifier_type: nil, instance_id: nil, created_at: nil, updated_at: nil) ⇒ BlocklistIdentifier
constructor
A new instance of BlocklistIdentifier.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object: nil, id: nil, identifier: nil, identifier_type: nil, instance_id: nil, created_at: nil, updated_at: nil) ⇒ BlocklistIdentifier
Returns a new instance of BlocklistIdentifier.
35 36 37 38 39 40 41 42 43 |
# File 'lib/clerk/models/components/blocklistidentifier.rb', line 35 def initialize(object: nil, id: nil, identifier: nil, identifier_type: nil, instance_id: nil, created_at: nil, updated_at: nil) @object = object @id = 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
46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/clerk/models/components/blocklistidentifier.rb', line 46 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 @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 |