Sha256: 1ff5976d724e2580b75b79c3d3c0f7c14f1311e50d7662fc211cef5149bbb4e5

Contents?: true

Size: 544 Bytes

Versions: 5

Compression:

Stored size: 544 Bytes

Contents

# frozen_string_literal: true

module Panoptes
  class Client
    module Discussions
      # Get list of talk discussions
      #
      # @param focus_id [Integer] filter by focussable id
      # @param focus_type [String] filter by focussable type
      # @return list of discussions
      def discussions(focus_id:, focus_type:)
        query = {}
        query[:focus_id] = focus_id
        query[:focus_type] = focus_type

        response = talk.get('/discussions', query)
        response.fetch('discussions')
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
panoptes-client-1.2.1 lib/panoptes/client/discussions.rb
panoptes-client-1.2.0 lib/panoptes/client/discussions.rb
panoptes-client-1.1.1 lib/panoptes/client/discussions.rb
panoptes-client-1.1.0 lib/panoptes/client/discussions.rb
panoptes-client-1.0.0 lib/panoptes/client/discussions.rb