Skip to content

Commit e2fcd7b

Browse files
committedJun 28, 2024·
Refactor exports helper and add export method
1 parent b3843b9 commit e2fcd7b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
 

‎lib/caido/helpers/exports.rb renamed to ‎lib/caido/helpers/export.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,21 @@ def exports
1818
}
1919
}')['dataExports']
2020
end
21+
22+
def export(id)
23+
query("query{
24+
dataExport(id: \"#{id}\"){
25+
id
26+
format
27+
name
28+
status
29+
error
30+
createdAt
31+
path
32+
size
33+
downloadUri
34+
}
35+
}")['dataExport']
36+
end
2137
end
2238
end

0 commit comments

Comments
 (0)
Please sign in to comment.