Class: FantasticRobot::Model::User

Inherits:
Base
  • Object
show all
Defined in:
lib/fantastic_robot/model/user.rb

Overview

This object represents a Telegram user or bot.

Constant Summary

Constants inherited from Base

Base::FIELD_CONVERSIONS

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#attributes, #initialize, #to_h

Constructor Details

This class inherits a constructor from FantasticRobot::Model::Base

Instance Attribute Details

#first_nameObject

Returns the value of attribute first_name.



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

def first_name
  @first_name
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#last_nameObject

Returns the value of attribute last_name.



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

def last_name
  @last_name
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end