Class: Telegraphist::Model::User

Inherits:
Telegraphist::Model show all
Defined in:
lib/telegraphist/model/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#first_nameObject

Returns the value of attribute first_name.



3
4
5
# File 'lib/telegraphist/model/user.rb', line 3

def first_name
  @first_name
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/telegraphist/model/user.rb', line 3

def id
  @id
end

#last_nameObject

Returns the value of attribute last_name.



3
4
5
# File 'lib/telegraphist/model/user.rb', line 3

def last_name
  @last_name
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/telegraphist/model/user.rb', line 3

def username
  @username
end

Instance Method Details

#to_sObject



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

def to_s
  [id, username, [first_name, last_name].compact.join(' ')].join(' :: ')
end