Class: Mailtrap::Suppression

Inherits:
Struct
  • Object
show all
Defined in:
lib/mailtrap/suppression.rb

Overview

Data Transfer Object for Suppression

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#created_atString (readonly)

The creation timestamp

Returns:

  • (String)

    the current value of created_at



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def created_at
  @created_at
end

#domain_nameString? (readonly)

The domain name

Returns:

  • (String, nil)

    the current value of domain_name



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def domain_name
  @domain_name
end

#emailString (readonly)

The email address

Returns:

  • (String)

    the current value of email



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def email
  @email
end

#idString (readonly)

The suppression UUID

Returns:

  • (String)

    the current value of id



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def id
  @id
end

#message_bounce_categoryString? (readonly)

The bounce category

Returns:

  • (String, nil)

    the current value of message_bounce_category



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def message_bounce_category
  @message_bounce_category
end

#message_categoryString? (readonly)

The message category

Returns:

  • (String, nil)

    the current value of message_category



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def message_category
  @message_category
end

#message_client_ipString? (readonly)

The client IP

Returns:

  • (String, nil)

    the current value of message_client_ip



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def message_client_ip
  @message_client_ip
end

#message_created_atString? (readonly)

The message creation timestamp

Returns:

  • (String, nil)

    the current value of message_created_at



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def message_created_at
  @message_created_at
end

#message_esp_responseString? (readonly)

The ESP response

Returns:

  • (String, nil)

    the current value of message_esp_response



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def message_esp_response
  @message_esp_response
end

#message_esp_server_typeString? (readonly)

The ESP server type

Returns:

  • (String, nil)

    the current value of message_esp_server_type



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def message_esp_server_type
  @message_esp_server_type
end

#message_outgoing_ipString? (readonly)

The outgoing IP

Returns:

  • (String, nil)

    the current value of message_outgoing_ip



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def message_outgoing_ip
  @message_outgoing_ip
end

#message_recipient_mx_nameString? (readonly)

The recipient MX name

Returns:

  • (String, nil)

    the current value of message_recipient_mx_name



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def message_recipient_mx_name
  @message_recipient_mx_name
end

#message_sender_emailString? (readonly)

The sender email

Returns:

  • (String, nil)

    the current value of message_sender_email



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def message_sender_email
  @message_sender_email
end

#message_subjectString? (readonly)

The message subject

Returns:

  • (String, nil)

    the current value of message_subject



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def message_subject
  @message_subject
end

#sending_streamString (readonly)

The sending stream

Returns:

  • (String)

    the current value of sending_stream



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def sending_stream
  @sending_stream
end

#typeString (readonly)

The suppression type

Returns:

  • (String)

    the current value of type



22
23
24
# File 'lib/mailtrap/suppression.rb', line 22

def type
  @type
end

Instance Method Details

#to_hHash

Returns The suppression attributes as a hash.

Returns:

  • (Hash)

    The suppression attributes as a hash



42
43
44
# File 'lib/mailtrap/suppression.rb', line 42

def to_h
  super.compact
end