Class: Mailtrap::Template

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

Overview

Data Transfer Object for Template

Instance Attribute Summary collapse

Instance Attribute Details

#body_html ⇒ String (readonly)

The HTML content

Returns:

  • (String) —

    the current value of body_html



14
15
16
# File 'lib/mailtrap/template.rb', line 14

def body_html
  @body_html
end

#body_text ⇒ String (readonly)

The plain text content

Returns:

  • (String) —

    the current value of body_text



14
15
16
# File 'lib/mailtrap/template.rb', line 14

def body_text
  @body_text
end

#category ⇒ String (readonly)

The template category

Returns:

  • (String) —

    the current value of category



14
15
16
# File 'lib/mailtrap/template.rb', line 14

def category
  @category
end

#created_at ⇒ String (readonly)

The creation timestamp

Returns:

  • (String) —

    the current value of created_at



14
15
16
# File 'lib/mailtrap/template.rb', line 14

def created_at
  @created_at
end

#id ⇒ Integer (readonly)

The template ID

Returns:

  • (Integer) —

    the current value of id



14
15
16
# File 'lib/mailtrap/template.rb', line 14

def id
  @id
end

#name ⇒ String (readonly)

The template name

Returns:

  • (String) —

    the current value of name



14
15
16
# File 'lib/mailtrap/template.rb', line 14

def name
  @name
end

#subject ⇒ String (readonly)

The email subject

Returns:

  • (String) —

    the current value of subject



14
15
16
# File 'lib/mailtrap/template.rb', line 14

def subject
  @subject
end

#updated_at ⇒ String (readonly)

The last update timestamp

Returns:

  • (String) —

    the current value of updated_at



14
15
16
# File 'lib/mailtrap/template.rb', line 14

def updated_at
  @updated_at
end

#uuid ⇒ String (readonly)

The template UUID

Returns:

  • (String) —

    the current value of uuid



14
15
16
# File 'lib/mailtrap/template.rb', line 14

def uuid
  @uuid
end