Skip to content

Commit 28a5a6f

Browse files
committed
chore: Add hosted_files method to Caido::Instance class
1 parent a863398 commit 28a5a6f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

lib/caido/helpers/hosted_file.rb

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# frozen_string_literal: true
2+
3+
module Caido
4+
# Instance class
5+
class Instance
6+
def hosted_files
7+
query('query {
8+
hostedFiles {
9+
id
10+
name
11+
createdAt
12+
updatedAt
13+
path
14+
size
15+
}
16+
}')['hostedFiles']
17+
end
18+
end
19+
end

0 commit comments

Comments
 (0)