We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b82a2ac commit 0e56e5dCopy full SHA for 0e56e5d
lib/caido/helpers/automate.rb
@@ -0,0 +1,30 @@
1
+# frozen_string_literal: true
2
+
3
+module Caido
4
+ # Instance class
5
+ class Instance
6
+ def automate_session(id)
7
+ query("query{
8
+ automateSession(id: \"#{id}\"){
9
+ id
10
+ name
11
+ raw
12
+ createdAt
13
+ }
14
+ }")['automateSession']
15
+ end
16
17
+ def automate_sessions
18
+ query('query{
19
+ automateSessions{
20
+ nodes{
21
22
23
24
25
26
27
+ }')['automateSessions']
28
29
30
+end
lib/caido/helpers/example.rb
0 commit comments