Class: MailParser::RFC2822::Group
- Inherits:
-
Object
- Object
- MailParser::RFC2822::Group
- Defined in:
- lib/mailparser/rfc2822.rb
Instance Attribute Summary collapse
-
#display_name ⇒ Object
(also: #phrase)
readonly
Returns the value of attribute display_name.
-
#mailbox_list ⇒ Object
readonly
Returns the value of attribute mailbox_list.
Instance Method Summary collapse
-
#initialize(mailbox_list, display_name) ⇒ Group
constructor
A new instance of Group.
- #to_s ⇒ Object
Constructor Details
#initialize(mailbox_list, display_name) ⇒ Group
Returns a new instance of Group.
109 110 111 112 |
# File 'lib/mailparser/rfc2822.rb', line 109 def initialize(mailbox_list, display_name) @mailbox_list = mailbox_list @display_name = display_name end |
Instance Attribute Details
#display_name ⇒ Object (readonly) Also known as: phrase
Returns the value of attribute display_name.
113 114 115 |
# File 'lib/mailparser/rfc2822.rb', line 113 def display_name @display_name end |
#mailbox_list ⇒ Object (readonly)
Returns the value of attribute mailbox_list.
113 114 115 |
# File 'lib/mailparser/rfc2822.rb', line 113 def mailbox_list @mailbox_list end |
Instance Method Details
#to_s ⇒ Object
115 116 117 |
# File 'lib/mailparser/rfc2822.rb', line 115 def to_s() "#{@display_name}:#{@mailbox_list.join(",")};" end |