Class: Postfixman::User

Inherits:
Object
  • Object
show all
Defined in:
lib/postfixman/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ User

Returns a new instance of User.



5
6
7
8
9
# File 'lib/postfixman/user.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

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/postfixman/user.rb', line 3

def email
  @email
end

#enabledObject

Returns the value of attribute enabled.



3
4
5
# File 'lib/postfixman/user.rb', line 3

def enabled
  @enabled
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/postfixman/user.rb', line 3

def id
  @id
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/postfixman/user.rb', line 3

def name
  @name
end