Class: Telegraphist::Model::User
- Inherits:
-
Telegraphist::Model
- Object
- Telegraphist::Model
- Telegraphist::Model::User
- Defined in:
- lib/telegraphist/model/user.rb
Instance Attribute Summary collapse
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
Instance Attribute Details
#first_name ⇒ Object
Returns the value of attribute first_name.
3 4 5 |
# File 'lib/telegraphist/model/user.rb', line 3 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/telegraphist/model/user.rb', line 3 def id @id end |
#last_name ⇒ Object
Returns the value of attribute last_name.
3 4 5 |
# File 'lib/telegraphist/model/user.rb', line 3 def last_name @last_name end |
#username ⇒ Object
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_s ⇒ Object
5 6 7 |
# File 'lib/telegraphist/model/user.rb', line 5 def to_s [id, username, [first_name, last_name].compact.join(' ')].join(' :: ') end |