Class: Botomizer::Chat
- Inherits:
-
Object
- Object
- Botomizer::Chat
- Defined in:
- lib/botomizer/chat.rb
Instance Attribute Summary collapse
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(params) ⇒ Chat
constructor
A new instance of Chat.
Constructor Details
#initialize(params) ⇒ Chat
Returns a new instance of Chat.
4 5 6 7 8 9 10 11 |
# File 'lib/botomizer/chat.rb', line 4 def initialize(params) @id = params[:id] @type = params[:type] @first_name = params[:first_name] @last_name = params[:last_name] @title = params[:title] @username = params[:username] end |
Instance Attribute Details
#first_name ⇒ Object (readonly)
Returns the value of attribute first_name.
2 3 4 |
# File 'lib/botomizer/chat.rb', line 2 def first_name @first_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
2 3 4 |
# File 'lib/botomizer/chat.rb', line 2 def id @id end |
#last_name ⇒ Object (readonly)
Returns the value of attribute last_name.
2 3 4 |
# File 'lib/botomizer/chat.rb', line 2 def last_name @last_name end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
2 3 4 |
# File 'lib/botomizer/chat.rb', line 2 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
2 3 4 |
# File 'lib/botomizer/chat.rb', line 2 def type @type end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
2 3 4 |
# File 'lib/botomizer/chat.rb', line 2 def username @username end |