Class: Mailtrap::Suppression
- Inherits:
-
Struct
- Object
- Struct
- Mailtrap::Suppression
- Defined in:
- lib/mailtrap/suppression.rb
Overview
Data Transfer Object for Suppression
Instance Attribute Summary collapse
-
#created_at ⇒ String
readonly
The creation timestamp.
-
#domain_name ⇒ String?
readonly
The domain name.
-
#email ⇒ String
readonly
The email address.
-
#id ⇒ String
readonly
The suppression UUID.
-
#message_bounce_category ⇒ String?
readonly
The bounce category.
-
#message_category ⇒ String?
readonly
The message category.
-
#message_client_ip ⇒ String?
readonly
The client IP.
-
#message_created_at ⇒ String?
readonly
The message creation timestamp.
-
#message_esp_response ⇒ String?
readonly
The ESP response.
-
#message_esp_server_type ⇒ String?
readonly
The ESP server type.
-
#message_outgoing_ip ⇒ String?
readonly
The outgoing IP.
-
#message_recipient_mx_name ⇒ String?
readonly
The recipient MX name.
-
#message_sender_email ⇒ String?
readonly
The sender email.
-
#message_subject ⇒ String?
readonly
The message subject.
-
#sending_stream ⇒ String
readonly
The sending stream.
-
#type ⇒ String
readonly
The suppression type.
Instance Method Summary collapse
-
#to_h ⇒ Hash
The suppression attributes as a hash.
Instance Attribute Details
#created_at ⇒ String (readonly)
The creation timestamp
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def created_at @created_at end |
#domain_name ⇒ String? (readonly)
The domain name
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def domain_name @domain_name end |
#email ⇒ String (readonly)
The email address
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def email @email end |
#id ⇒ String (readonly)
The suppression UUID
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def id @id end |
#message_bounce_category ⇒ String? (readonly)
The bounce category
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def end |
#message_category ⇒ String? (readonly)
The message category
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def end |
#message_client_ip ⇒ String? (readonly)
The client IP
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def end |
#message_created_at ⇒ String? (readonly)
The message creation timestamp
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def end |
#message_esp_response ⇒ String? (readonly)
The ESP response
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def end |
#message_esp_server_type ⇒ String? (readonly)
The ESP server type
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def end |
#message_outgoing_ip ⇒ String? (readonly)
The outgoing IP
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def end |
#message_recipient_mx_name ⇒ String? (readonly)
The recipient MX name
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def end |
#message_sender_email ⇒ String? (readonly)
The sender email
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def end |
#message_subject ⇒ String? (readonly)
The message subject
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def end |
#sending_stream ⇒ String (readonly)
The sending stream
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def sending_stream @sending_stream end |
#type ⇒ String (readonly)
The suppression type
22 23 24 |
# File 'lib/mailtrap/suppression.rb', line 22 def type @type end |
Instance Method Details
#to_h ⇒ Hash
Returns The suppression attributes as a hash.
42 43 44 |
# File 'lib/mailtrap/suppression.rb', line 42 def to_h super.compact end |