Sha256: ee282f47e8564f7d0fb3408fdd5813e07a0c32fd4b304148df569af12227651a
Contents?: true
Size: 732 Bytes
Versions: 1
Compression:
Stored size: 732 Bytes
Contents
# typed: false module Researchable module FreedcampApi class ListDiscussions < Endpoint integer :discussion_id, default: nil integer :project_id, default: nil def execute list_discussions(discussion_id) end # sig do # params( # task_id: T.nilable(Integer) # ).returns( # T::Array[Researchable::FreedcampApi::Structs::Task] # ) # end def list_discussions(discussion_id) discussion_query = discussion_id ? "/#{discussion_id}" : '/' project_query = project_id ? "?project_id=#{project_id}" : '' url = "/discussions#{discussion_query} #{project_query}" session.get(url) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
researchable-freedcamp-api-0.1.8 | lib/researchable/freedcamp_api/list_discussions.rb |