Class: DSU3::Channel
Overview
Channel object
Instance Attribute Summary
Attributes inherited from DObject
Instance Method Summary collapse
-
#message(message_id) ⇒ Object
Returns Message instance.
-
#send(message) ⇒ Object
Sends a message to a channel.
- #spam(message) ⇒ Object
-
#type ⇒ Object
Types text into a channel.
Methods inherited from DObject
Constructor Details
This class inherits a constructor from DSU3::DObject
Instance Method Details
#message(message_id) ⇒ Object
Returns Message instance
29 30 31 |
# File 'lib/dsu3/data/channel.rb', line 29 def () DSU3::Message.new(self, ) end |
#send(message) ⇒ Object
Sends a message to a channel
13 14 15 |
# File 'lib/dsu3/data/channel.rb', line 13 def send() @net.request { DSU3::API::Channel.send(_1, @id, ) } end |