Sha256: 3e30d8c642d5ee27b34ff3382abab3bdf141cbf06a09423179ab93654a7d4503

Contents?: true

Size: 669 Bytes

Versions: 2

Compression:

Stored size: 669 Bytes

Contents

module BacklogApiClient
  class Client
    class Issues
      RESOURCE_NAME = 'issues'

      def initialize(client)
        @client = client
      end

      def list(params)
        @client.get(RESOURCE_NAME, params)
      end

      def information(isuue_id_or_key)
        @client.get("#{RESOURCE_NAME}/#{isuue_id_or_key}")
      end

      def create(request)
        @client.post(RESOURCE_NAME, request)
      end

      def update(issue_id_or_key, request)
        @client.patch("#{RESOURCE_NAME}/#{issue_id_or_key}", request)
      end

      def delete(isuue_id_or_key)
        @client.delete("#{RESOURCE_NAME}/#{isuue_id_or_key}")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
backlog-api-client-0.0.2 lib/backlog-api-client/issues.rb
backlog-api-client-0.0.1 lib/backlog-api-client/issues.rb