Class: MailParser::RFC2822::AddrSpec
- Inherits:
-
Object
- Object
- MailParser::RFC2822::AddrSpec
- Defined in:
- lib/mailparser/rfc2822.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#local_part ⇒ Object
readonly
Returns the value of attribute local_part.
Instance Method Summary collapse
-
#initialize(local_part, domain) ⇒ AddrSpec
constructor
A new instance of AddrSpec.
- #to_s ⇒ Object
Constructor Details
#initialize(local_part, domain) ⇒ AddrSpec
Returns a new instance of AddrSpec.
74 75 76 77 |
# File 'lib/mailparser/rfc2822.rb', line 74 def initialize(local_part, domain) @local_part = local_part @domain = domain end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
78 79 80 |
# File 'lib/mailparser/rfc2822.rb', line 78 def domain @domain end |
#local_part ⇒ Object (readonly)
Returns the value of attribute local_part.
78 79 80 |
# File 'lib/mailparser/rfc2822.rb', line 78 def local_part @local_part end |
Instance Method Details
#to_s ⇒ Object
79 80 81 |
# File 'lib/mailparser/rfc2822.rb', line 79 def to_s "#{@local_part}@#{@domain}" end |