Class: Rubirai::RequestEvent Abstract
- Defined in:
- lib/rubirai/events/request_events.rb,
lib/rubirai/event_resp.rb
Overview
This class is abstract.
Request events
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
parse, #parse_val_from_key, set_event, type_to_klass, valid_type?
Instance Attribute Details
#event_id ⇒ Integer (readonly)
Returns the event id.
19 |
# File 'lib/rubirai/events/request_events.rb', line 19 set_event nil, :event_id, :from_id, :group_id, :nick, :message |
#from_id ⇒ Integer (readonly)
Returns the id of the sender of the request.
19 |
# File 'lib/rubirai/events/request_events.rb', line 19 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.
19 |
# File 'lib/rubirai/events/request_events.rb', line 19 set_event nil, :event_id, :from_id, :group_id, :nick, :message |
#message ⇒ String (readonly)
Returns the message from the sender.
19 |
# File 'lib/rubirai/events/request_events.rb', line 19 set_event nil, :event_id, :from_id, :group_id, :nick, :message |
#nick ⇒ String (readonly)
Returns the nickname of the sender of the request.
19 |
# File 'lib/rubirai/events/request_events.rb', line 19 set_event nil, :event_id, :from_id, :group_id, :nick, :message |
Instance Method Details
#respond(operation, message) ⇒ Object
This method is abstract.
112 113 114 |
# File 'lib/rubirai/event_resp.rb', line 112 def respond(operation, ) raise NotImplementedError end |