Class: SkypeAPI::OLEConnection

Inherits:
Object
  • Object
show all
Defined in:
lib/skype-api/connection/ole_connection.rb

Instance Method Summary collapse

Constructor Details

#initializeOLEConnection

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