Class: Mailtrap::ContactImport
- Inherits:
-
Struct
- Object
- Struct
- Mailtrap::ContactImport
- Defined in:
- lib/mailtrap/contact_import.rb
Overview
Data Transfer Object for Contact Import
Instance Attribute Summary collapse
-
#contacts_over_limit_count ⇒ Integer?
readonly
Number of contacts over the allowed limit.
-
#created_contacts_count ⇒ Integer?
readonly
Number of contacts created in this import.
-
#id ⇒ Integer
readonly
The contact import ID.
-
#status ⇒ String
readonly
The status of the import (created, started, finished, failed).
-
#updated_contacts_count ⇒ Integer?
readonly
Number of contacts updated in this import.
Instance Method Summary collapse
-
#to_h ⇒ Hash
The contact attributes as a hash.
Instance Attribute Details
#contacts_over_limit_count ⇒ Integer? (readonly)
Number of contacts over the allowed limit
10 11 12 |
# File 'lib/mailtrap/contact_import.rb', line 10 def contacts_over_limit_count @contacts_over_limit_count end |
#created_contacts_count ⇒ Integer? (readonly)
Number of contacts created in this import
10 11 12 |
# File 'lib/mailtrap/contact_import.rb', line 10 def created_contacts_count @created_contacts_count end |
#id ⇒ Integer (readonly)
The contact import ID
10 11 12 |
# File 'lib/mailtrap/contact_import.rb', line 10 def id @id end |
#status ⇒ String (readonly)
The status of the import (created, started, finished, failed)
10 11 12 |
# File 'lib/mailtrap/contact_import.rb', line 10 def status @status end |
#updated_contacts_count ⇒ Integer? (readonly)
Number of contacts updated in this import
10 11 12 |
# File 'lib/mailtrap/contact_import.rb', line 10 def updated_contacts_count @updated_contacts_count end |
Instance Method Details
#to_h ⇒ Hash
Returns The contact attributes as a hash.
19 20 21 |
# File 'lib/mailtrap/contact_import.rb', line 19 def to_h super.compact end |