Class: Kanbantastic::User
- Inherits:
-
Object
- Object
- Kanbantastic::User
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/kanbantastic/user.rb
Instance Attribute Summary collapse
-
#avatar ⇒ Object
readonly
Returns the value of attribute avatar.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, email, avatar) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(name, email, avatar) ⇒ User
Returns a new instance of User.
8 9 10 11 12 13 |
# File 'lib/kanbantastic/user.rb', line 8 def initialize(name, email, avatar) @name = name @email = email @avatar = avatar self.valid? end |
Instance Attribute Details
#avatar ⇒ Object (readonly)
Returns the value of attribute avatar.
5 6 7 |
# File 'lib/kanbantastic/user.rb', line 5 def avatar @avatar end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
5 6 7 |
# File 'lib/kanbantastic/user.rb', line 5 def email @email end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/kanbantastic/user.rb', line 5 def name @name end |