Method: Chatrix::User#to_s

Defined in:
lib/chatrix/user.rb

#to_sString

Converts this User object to a string representation of it.

Returns:

  • (String)

    Returns the user's display name if one is set, otherwise returns the ID.



94
95
96
# File 'lib/chatrix/user.rb', line 94

def to_s
  @id
end