Class: Mailtrap::ContactExport

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

Overview

Data Transfer Object for Contact Export

Instance Attribute Summary collapse

Instance Attribute Details

#created_atString (readonly)

When the export was created

Returns:

  • (String)

    the current value of created_at



10
11
12
# File 'lib/mailtrap/contact_export.rb', line 10

def created_at
  @created_at
end

#idInteger (readonly)

The contact export ID

Returns:

  • (Integer)

    the current value of id



10
11
12
# File 'lib/mailtrap/contact_export.rb', line 10

def id
  @id
end

#statusString (readonly)

The export status (created, started, finished)

Returns:

  • (String)

    the current value of status



10
11
12
# File 'lib/mailtrap/contact_export.rb', line 10

def status
  @status
end

#updated_atString (readonly)

When the export was last updated

Returns:

  • (String)

    the current value of updated_at



10
11
12
# File 'lib/mailtrap/contact_export.rb', line 10

def updated_at
  @updated_at
end

#urlString? (readonly)

URL of the exported file (only when status is “finished”)

Returns:

  • (String, nil)

    the current value of url



10
11
12
# File 'lib/mailtrap/contact_export.rb', line 10

def url
  @url
end