Class: User

Inherits:
Object
  • Object
show all
Defined in:
src/models/user.rb

Overview

Describes and provides actions for Slack users

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idString (readonly)

Returns the user id

Returns:

  • (String)

    the user id



4
5
6
# File 'src/models/user.rb', line 4

def id
  @id
end

Instance Method Details

#==(other) ⇒ Boolean Also known as: eql?

Compare users by ID

Parameters:

  • other (User)

    The other user to compare to.

Returns:

  • (Boolean)

    The comparison result.



16
17
18
# File 'src/models/user.rb', line 16

def ==(other)
  @id == other.id
end