class ScormCloud::DebugService
Public Instance Methods
auth_ping()
click to toggle source
# File lib/scorm_cloud/debug_service.rb, line 11 def auth_ping() xml = connection.call("rustici.debug.authPing") raise "Bad Server Response" unless xml.elements["/rsp/pong"] "pong" end
get_time()
click to toggle source
# File lib/scorm_cloud/debug_service.rb, line 17 def get_time() xml = connection.call("rustici.debug.getTime") time = xml.elements["//currenttime"] raise "Bad Server Response" unless time time.text end
ping()
click to toggle source
# File lib/scorm_cloud/debug_service.rb, line 4 def ping() url = "http://cloud.scorm.com/api?method=rustici.debug.ping" data = connection.call_url(url) raise "Bad Server Response" unless data.include?("pong") "pong" end