Class: Mailtrap::ContactEvent

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

Overview

Data Transfer Object for Contact Event

Instance Attribute Summary collapse

Instance Attribute Details

#contact_emailString (readonly)

The contact email

Returns:

  • (String)

    the current value of contact_email



9
10
11
# File 'lib/mailtrap/contact_event.rb', line 9

def contact_email
  @contact_email
end

#contact_idString (readonly)

The contact ID (UUID)

Returns:

  • (String)

    the current value of contact_id



9
10
11
# File 'lib/mailtrap/contact_event.rb', line 9

def contact_id
  @contact_id
end

#nameString (readonly)

The event name

Returns:

  • (String)

    the current value of name



9
10
11
# File 'lib/mailtrap/contact_event.rb', line 9

def name
  @name
end

#paramsHash (readonly)

The event parameters (string keys, scalar values)

Returns:

  • (Hash)

    the current value of params



9
10
11
# File 'lib/mailtrap/contact_event.rb', line 9

def params
  @params
end