Class: Devmail::Message

Inherits:
Struct
  • Object
show all
Defined in:
lib/devmail/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bccObject

Returns the value of attribute bcc



2
3
4
# File 'lib/devmail/message.rb', line 2

def bcc
  @bcc
end

#ccObject

Returns the value of attribute cc



2
3
4
# File 'lib/devmail/message.rb', line 2

def cc
  @cc
end

#fromObject

Returns the value of attribute from



2
3
4
# File 'lib/devmail/message.rb', line 2

def from
  @from
end

#html_partObject

Returns the value of attribute html_part



2
3
4
# File 'lib/devmail/message.rb', line 2

def html_part
  @html_part
end

#mailer_classObject

Returns the value of attribute mailer_class



2
3
4
# File 'lib/devmail/message.rb', line 2

def mailer_class
  @mailer_class
end

#multipartObject

Returns the value of attribute multipart



2
3
4
# File 'lib/devmail/message.rb', line 2

def multipart
  @multipart
end

#reply_toObject

Returns the value of attribute reply_to



2
3
4
# File 'lib/devmail/message.rb', line 2

def reply_to
  @reply_to
end

#senderObject

Returns the value of attribute sender



2
3
4
# File 'lib/devmail/message.rb', line 2

def sender
  @sender
end

#subjectObject

Returns the value of attribute subject



2
3
4
# File 'lib/devmail/message.rb', line 2

def subject
  @subject
end

#text_partObject

Returns the value of attribute text_part



2
3
4
# File 'lib/devmail/message.rb', line 2

def text_part
  @text_part
end

#toObject

Returns the value of attribute to



2
3
4
# File 'lib/devmail/message.rb', line 2

def to
  @to
end

Instance Method Details

#summaryObject



5
6
7
# File 'lib/devmail/message.rb', line 5

def summary
  "#{from.join(', ')} to #{to.join(', ')}: #{subject}"
end