Class: GitAll::Users::User

Inherits:
Struct
  • Object
show all
Defined in:
lib/gitall/gitall.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nicknameObject

Returns the value of attribute nickname

Returns:

  • (Object)

    the current value of nickname



22
23
24
# File 'lib/gitall/gitall.rb', line 22

def nickname
  @nickname
end

#passwordObject

Returns the value of attribute password

Returns:

  • (Object)

    the current value of password



22
23
24
# File 'lib/gitall/gitall.rb', line 22

def password
  @password
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



22
23
24
# File 'lib/gitall/gitall.rb', line 22

def type
  @type
end

Instance Method Details

#authenticate(pass) ⇒ Object



23
24
25
# File 'lib/gitall/gitall.rb', line 23

def authenticate(pass)
  password == pass
end