Class: Mailtrap::EmailLogEvent

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

Overview

Data Transfer Object for an email log event (delivery, open, click, bounce, etc.)

Instance Attribute Summary collapse

Instance Attribute Details

#created_atString (readonly)

ISO 8601 timestamp

Returns:

  • (String)

    the current value of created_at



12
13
14
# File 'lib/mailtrap/email_log_event.rb', line 12

def created_at
  @created_at
end

#detailsEmailLogEventDetails::Delivery, ... (readonly)

Type-specific event details



12
13
14
# File 'lib/mailtrap/email_log_event.rb', line 12

def details
  @details
end

#event_typeString (readonly)

One of: delivery, open, click, soft_bounce, bounce, spam, unsubscribe, suspension, reject

Returns:

  • (String)

    the current value of event_type



12
13
14
# File 'lib/mailtrap/email_log_event.rb', line 12

def event_type
  @event_type
end