Class: Postfixman::Alias
- Inherits:
-
Object
- Object
- Postfixman::Alias
- Defined in:
- lib/postfixman/alias.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#from ⇒ Object
Returns the value of attribute from.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#recipients ⇒ Object
Returns the value of attribute recipients.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Alias
constructor
A new instance of Alias.
Constructor Details
#initialize(attributes = {}) ⇒ Alias
Returns a new instance of Alias.
5 6 7 8 9 |
# File 'lib/postfixman/alias.rb', line 5 def initialize(attributes={}) attributes.each do |k,v| self.send("#{k}=", v) if self.respond_to?(k) end end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
3 4 5 |
# File 'lib/postfixman/alias.rb', line 3 def enabled @enabled end |
#from ⇒ Object
Returns the value of attribute from.
3 4 5 |
# File 'lib/postfixman/alias.rb', line 3 def from @from end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/postfixman/alias.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/postfixman/alias.rb', line 3 def name @name end |
#recipients ⇒ Object
Returns the value of attribute recipients.
3 4 5 |
# File 'lib/postfixman/alias.rb', line 3 def recipients @recipients end |