Class: Maildrop::Models::Mailbox
- Inherits:
-
Object
- Object
- Maildrop::Models::Mailbox
- Defined in:
- lib/maildrop/models/mailbox.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #address ⇒ Object
- #emails ⇒ Object
-
#initialize(name) ⇒ Mailbox
constructor
A new instance of Mailbox.
Constructor Details
#initialize(name) ⇒ Mailbox
Returns a new instance of Mailbox.
5 6 7 |
# File 'lib/maildrop/models/mailbox.rb', line 5 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/maildrop/models/mailbox.rb', line 3 def name @name end |
Instance Method Details
#address ⇒ Object
9 10 11 |
# File 'lib/maildrop/models/mailbox.rb', line 9 def address "#{name}@maildrop.cc" end |