Class: GitAll::Bot::Users::User

Inherits:
Struct
  • Object
show all
Defined in:
lib/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



41
42
43
# File 'lib/gitall.rb', line 41

def nickname
  @nickname
end

#passwordObject

Returns the value of attribute password

Returns:

  • (Object)

    the current value of password



41
42
43
# File 'lib/gitall.rb', line 41

def password
  @password
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



41
42
43
# File 'lib/gitall.rb', line 41

def type
  @type
end

Instance Method Details

#authenticate(pass) ⇒ Object



42
43
44
# File 'lib/gitall.rb', line 42

def authenticate(pass)
  password == pass
end