Sha256: 86c2829a8c9ec98700e4412ee4a14027e20ac366c28a98c23444b0d44e56b4de
Contents?: true
Size: 618 Bytes
Versions: 5
Compression:
Stored size: 618 Bytes
Contents
module TestdroidAPI class DeviceSessions < CloudListResource end class DeviceSession < CloudResource def initialize(uri, client, params = {}) super uri, client, "deviceSession", params @uri, @client = uri, client end def release @client.post("#{@uri}/release", params = {}) end def download_all_files(path) Dir.mkdir(path) unless Dir.exist?(path) files = @client.get("#{@uri}/output-file-set/files") files['data'].each do |file| @client.download(file['directUrl'], ::File.join(path, "#{file['id']}-#{file['name']}")) end end end end
Version data entries
5 entries across 5 versions & 2 rubygems