Class: ICQ::Message
- Inherits:
-
Object
- Object
- ICQ::Message
- Defined in:
- lib/icqbot/message.rb
Instance Attribute Summary collapse
-
#keyboard ⇒ Object
readonly
Returns the value of attribute keyboard.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
- #<<(btn) ⇒ Object (also: #append)
-
#initialize(obj, *keyboard) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(obj, *keyboard) ⇒ Message
Returns a new instance of Message.
8 9 10 11 |
# File 'lib/icqbot/message.rb', line 8 def initialize obj, *keyboard @text = obj @keyboard = keyboard end |
Instance Attribute Details
#keyboard ⇒ Object (readonly)
Returns the value of attribute keyboard.
6 7 8 |
# File 'lib/icqbot/message.rb', line 6 def keyboard @keyboard end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
6 7 8 |
# File 'lib/icqbot/message.rb', line 6 def text @text end |