Sha256: 25fe99eeb247e8d16975c7ede31987505538ea68c771b57cd7b5b7308d5f000b

Contents?: true

Size: 513 Bytes

Versions: 18

Compression:

Stored size: 513 Bytes

Contents

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

18 entries across 18 versions & 1 rubygems

Version Path
panoptes-client-1.0.0.pre1 lib/panoptes/client/discussions.rb
panoptes-client-1.0.0.pre lib/panoptes/client/discussions.rb
panoptes-client-0.4.0 lib/panoptes/client/discussions.rb
panoptes-client-0.3.8 lib/panoptes/client/discussions.rb
panoptes-client-0.3.7 lib/panoptes/client/discussions.rb
panoptes-client-0.3.6 lib/panoptes/client/discussions.rb
panoptes-client-0.3.5 lib/panoptes/client/discussions.rb
panoptes-client-0.3.4 lib/panoptes/client/discussions.rb
panoptes-client-0.3.3 lib/panoptes/client/discussions.rb
panoptes-client-0.3.2 lib/panoptes/client/discussions.rb
panoptes-client-0.3.1 lib/panoptes/client/discussions.rb
panoptes-client-0.3.0 lib/panoptes/client/discussions.rb
panoptes-client-0.2.13 lib/panoptes/client/discussions.rb
panoptes-client-0.2.12 lib/panoptes/client/discussions.rb
panoptes-client-0.2.11 lib/panoptes/client/discussions.rb
panoptes-client-0.2.10 lib/panoptes/client/discussions.rb
panoptes-client-0.2.9 lib/panoptes/client/discussions.rb
panoptes-client-0.2.8 lib/panoptes/client/discussions.rb