Class: Rubirai::RequestEvent
- Defined in:
- lib/rubirai/event_resp.rb,
lib/rubirai/events/request_events.rb
Direct Known Subclasses
BotInvitedToGroupEvent, JoinGroupRequestEvent, NewFriendRequestEvent
Instance Attribute Summary collapse
-
#event_id ⇒ Integer
readonly
The event id.
-
#from_id ⇒ Integer
readonly
The id of the sender of the request.
-
#group_id ⇒ Integer
readonly
The group where the request is from.
-
#message ⇒ String
readonly
The message from the sender.
-
#nick ⇒ String
readonly
The nickname of the sender of the request.
Attributes inherited from Event
Instance Method Summary collapse
Methods inherited from Event
#initialize, parse, set_event, type_to_klass, valid_type?
Constructor Details
This class inherits a constructor from Rubirai::Event
Instance Attribute Details
#event_id ⇒ Integer (readonly)
Returns the event id.
17 |
# File 'lib/rubirai/events/request_events.rb', line 17 set_event nil, :event_id, :from_id, :group_id, :nick, :message |
#from_id ⇒ Integer (readonly)
Returns the id of the sender of the request.
17 |
# File 'lib/rubirai/events/request_events.rb', line 17 set_event nil, :event_id, :from_id, :group_id, :nick, :message |
#group_id ⇒ Integer (readonly)
Returns the group where the request is from. 0 if not from group.
17 |
# File 'lib/rubirai/events/request_events.rb', line 17 set_event nil, :event_id, :from_id, :group_id, :nick, :message |
#message ⇒ String (readonly)
Returns the message from the sender.
17 |
# File 'lib/rubirai/events/request_events.rb', line 17 set_event nil, :event_id, :from_id, :group_id, :nick, :message |
#nick ⇒ String (readonly)
Returns the nickname of the sender of the request.
17 |
# File 'lib/rubirai/events/request_events.rb', line 17 set_event nil, :event_id, :from_id, :group_id, :nick, :message |
Instance Method Details
#respond(operation, message) ⇒ Object
This method is abstract.
92 93 94 |
# File 'lib/rubirai/event_resp.rb', line 92 def respond(operation, ) raise NotImplementedError end |