Sha256: dc87fe750cb41b2d16a8bbe81068bd793a8bf3147dea1e6e66494fa4b9da58ad

Contents?: true

Size: 527 Bytes

Versions: 7

Compression:

Stored size: 527 Bytes

Contents

# typed: sigil

module Researchable
  module FreedcampApi
    # @api private
    class CreateComment < Endpoint
      object :comment, class: Researchable::FreedcampApi::Structs::Comment
      def execute
        create_comment(comment)
      end

      private

      sig do
        params(comment: Researchable::FreedcampApi::Structs::Comment)
          .returns(T::Hash[T.untyped, T.untyped])
      end
      def create_comment(comment)
        # title
        session.post('/comments', comment)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
researchable-freedcamp-api-0.1.8 lib/researchable/freedcamp_api/create_comment.rb
researchable-freedcamp-api-0.1.7 lib/researchable/freedcamp_api/create_comment.rb
researchable-freedcamp-api-0.1.6 lib/researchable/freedcamp_api/create_comment.rb
researchable-freedcamp-api-0.1.5 lib/researchable/freedcamp_api/create_comment.rb
researchable-freedcamp-api-0.1.4 lib/researchable/freedcamp_api/create_comment.rb
researchable-freedcamp-api-0.1.3 lib/researchable/freedcamp_api/create_comment.rb
researchable-freedcamp-api-0.1.2 lib/researchable/freedcamp_api/create_comment.rb