Class: Kanbantastic::User

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/kanbantastic/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#avatarObject (readonly)

Returns the value of attribute avatar.



5
6
7
# File 'lib/kanbantastic/user.rb', line 5

def avatar
  @avatar
end

#emailObject (readonly)

Returns the value of attribute email.



5
6
7
# File 'lib/kanbantastic/user.rb', line 5

def email
  @email
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/kanbantastic/user.rb', line 5

def name
  @name
end