Class: SkypeAPI::OLEConnection
- Inherits:
-
Object
- Object
- SkypeAPI::OLEConnection
- Defined in:
- lib/skype-api/connection/ole_connection.rb
Instance Method Summary collapse
- #exec(cmd) ⇒ Object
-
#initialize ⇒ OLEConnection
constructor
A new instance of OLEConnection.
Constructor Details
#initialize ⇒ OLEConnection
Returns a new instance of OLEConnection.
4 5 6 |
# File 'lib/skype-api/connection/ole_connection.rb', line 4 def initialize @api_reference = WIN32OLE.new('Skype4COM.Skype') end |
Instance Method Details
#exec(cmd) ⇒ Object
7 8 9 10 |
# File 'lib/skype-api/connection/ole_connection.rb', line 7 def exec(cmd) @api_reference.SendCommand(@api_reference.Command(4,cmd,"","True",2000)) WIN32OLE::ARGV[0].Reply.sub("#4 ",""); end |