Class: Mailtrap::Inbox

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

Overview

Data Transfer Object for Inbox

Instance Attribute Summary collapse

Instance Attribute Details

#api_domainString (readonly)

The API domain

Returns:

  • (String)

    the current value of api_domain



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def api_domain
  @api_domain
end

#domainString (readonly)

The inbox domain

Returns:

  • (String)

    the current value of domain



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def domain
  @domain
end

#email_domainString (readonly)

The email domain

Returns:

  • (String)

    the current value of email_domain



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def email_domain
  @email_domain
end

#email_usernameString (readonly)

The email username

Returns:

  • (String)

    the current value of email_username



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def email_username
  @email_username
end

#email_username_enabledBoolean (readonly)

Whether the email username is enabled

Returns:

  • (Boolean)

    the current value of email_username_enabled



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def email_username_enabled
  @email_username_enabled
end

#emails_countInteger (readonly)

The total number of emails

Returns:

  • (Integer)

    the current value of emails_count



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def emails_count
  @emails_count
end

#emails_unread_countInteger (readonly)

The number of unread emails

Returns:

  • (Integer)

    the current value of emails_unread_count



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def emails_unread_count
  @emails_unread_count
end

#forward_from_email_addressString (readonly)

The forwarding email address

Returns:

  • (String)

    the current value of forward_from_email_address



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def forward_from_email_address
  @forward_from_email_address
end

#forwarded_messages_countInteger (readonly)

The count of forwarded messages

Returns:

  • (Integer)

    the current value of forwarded_messages_count



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def forwarded_messages_count
  @forwarded_messages_count
end

#idInteger (readonly)

The inbox ID

Returns:

  • (Integer)

    the current value of id



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def id
  @id
end

#last_message_sent_atString? (readonly)

The timestamp of the last sent message

Returns:

  • (String, nil)

    the current value of last_message_sent_at



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def last_message_sent_at
  @last_message_sent_at
end

#max_message_sizeInteger (readonly)

The maximum message size in MB

Returns:

  • (Integer)

    the current value of max_message_size



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def max_message_size
  @max_message_size
end

#max_sizeInteger (readonly)

The maximum inbox size in MB

Returns:

  • (Integer)

    the current value of max_size



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def max_size
  @max_size
end

#nameString (readonly)

The inbox name

Returns:

  • (String)

    the current value of name



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def name
  @name
end

#passwordString? (readonly)

The inbox password

Returns:

  • (String, nil)

    the current value of password



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def password
  @password
end

#permissionsHash (readonly)

List of permissions

Returns:

  • (Hash)

    the current value of permissions



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def permissions
  @permissions
end

#pop3_domainString (readonly)

The POP3 domain

Returns:

  • (String)

    the current value of pop3_domain



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def pop3_domain
  @pop3_domain
end

#pop3_portsArray<Integer> (readonly)

The list of POP3 ports

Returns:

  • (Array<Integer>)

    the current value of pop3_ports



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def pop3_ports
  @pop3_ports
end

#project_idInteger (readonly)

The associated project ID

Returns:

  • (Integer)

    the current value of project_id



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def project_id
  @project_id
end

#sent_messages_countInteger (readonly)

The count of sent messages

Returns:

  • (Integer)

    the current value of sent_messages_count



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def sent_messages_count
  @sent_messages_count
end

#smtp_portsArray<Integer> (readonly)

The list of SMTP ports

Returns:

  • (Array<Integer>)

    the current value of smtp_ports



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def smtp_ports
  @smtp_ports
end

#statusString (readonly)

The inbox status

Returns:

  • (String)

    the current value of status



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def status
  @status
end

#usedInteger (readonly)

The used inbox size in MB

Returns:

  • (Integer)

    the current value of used



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def used
  @used
end

#usernameString (readonly)

The inbox username

Returns:

  • (String)

    the current value of username



30
31
32
# File 'lib/mailtrap/inbox.rb', line 30

def username
  @username
end