Class: Skype::Application::Stream
- Inherits:
-
Object
- Object
- Skype::Application::Stream
- Defined in:
- lib/skype/application.rb
Instance Method Summary collapse
- #datagram(msg, &block) ⇒ Object
- #disconnect ⇒ Object
-
#initialize(app, streamString) ⇒ Stream
constructor
A new instance of Stream.
- #read ⇒ Object
- #to_s ⇒ Object
- #user ⇒ Object
- #write(msg) ⇒ Object
Constructor Details
Instance Method Details
#datagram(msg, &block) ⇒ Object
22 23 24 |
# File 'lib/skype/application.rb', line 22 def datagram msg, &block @app.datagram self, cmd end |
#disconnect ⇒ Object
30 31 32 |
# File 'lib/skype/application.rb', line 30 def disconnect @app.disconnect self end |
#read ⇒ Object
26 27 28 |
# File 'lib/skype/application.rb', line 26 def read @app.read self end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/skype/application.rb', line 10 def to_s @id end |
#user ⇒ Object
14 15 16 |
# File 'lib/skype/application.rb', line 14 def user @user end |
#write(msg) ⇒ Object
18 19 20 |
# File 'lib/skype/application.rb', line 18 def write msg @app.write self, cmd end |