researchable-freedcamp-api 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77bb6dfffc6fce9c8d4a7636182781955b49b11f1507d0d50dc8974eb88ba7fa
|
4
|
+
data.tar.gz: 7a0fbb253039d096f2bc282e5363ba53f433132b02dec6f555891cdc9067ab4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34ff2ec76464026a977b6dedb4cbf5b99b8f411ce5fcd504cb89c4de5d5ddbc1017210dbd93cdbe6a87d7340f897c9d812031f8026fd2fcd2ceb181c990363ce
|
7
|
+
data.tar.gz: '09bcc82ef7455a191b7cc20dc8ee5fba4c0acac1285e4ff918606466de3dad4595d167610ca52588d893043d53dd64e2d71a2e17611952c0a4ed1eefd6f1e25c'
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# typed: false
|
2
|
+
module Researchable
|
3
|
+
module FreedcampApi
|
4
|
+
class ListDiscussions < Endpoint
|
5
|
+
integer :discussion_id, default: nil
|
6
|
+
integer :project_id, default: nil
|
7
|
+
|
8
|
+
def execute
|
9
|
+
list_discussions(discussion_id)
|
10
|
+
end
|
11
|
+
|
12
|
+
# sig do
|
13
|
+
# params(
|
14
|
+
# task_id: T.nilable(Integer)
|
15
|
+
# ).returns(
|
16
|
+
# T::Array[Researchable::FreedcampApi::Structs::Task]
|
17
|
+
# )
|
18
|
+
# end
|
19
|
+
def list_discussions(discussion_id)
|
20
|
+
discussion_query = discussion_id ? "/#{discussion_id}" : '/'
|
21
|
+
project_query = project_id ? "?project_id=#{project_id}" : ''
|
22
|
+
url = "/discussions#{discussion_query}
|
23
|
+
#{project_query}"
|
24
|
+
session.get(url)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: researchable-freedcamp-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Blaauw
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- lib/researchable/freedcamp_api/create_task.rb
|
132
132
|
- lib/researchable/freedcamp_api/endpoint.rb
|
133
133
|
- lib/researchable/freedcamp_api/get_user.rb
|
134
|
+
- lib/researchable/freedcamp_api/list_discussions.rb
|
134
135
|
- lib/researchable/freedcamp_api/list_lists.rb
|
135
136
|
- lib/researchable/freedcamp_api/list_milestones.rb
|
136
137
|
- lib/researchable/freedcamp_api/list_projects.rb
|