class MailCatcher::API::Mailbox::Message

Attributes

id[R]
raw[R]

Public Class Methods

new(msg) click to toggle source
# File lib/mailcatcher/api/mailbox/message.rb, line 16
def initialize(msg)
  @id = msg['id'].to_i
  @raw = msg['source']

  @mail = Mail.new(@raw)
end

Public Instance Methods

delete!() click to toggle source
# File lib/mailcatcher/api/mailbox/message.rb, line 27
def delete!
  MailCatcher::API::Client.delete_message(id)
end