Sha256: d4be478bbf0f70681a750ee7c601ed3100ee40ae88a69c8ec69d490e341bc2cd

Contents?: true

Size: 359 Bytes

Versions: 4

Compression:

Stored size: 359 Bytes

Contents

module TrackerApi
  module Endpoints
    class Task
      attr_accessor :client

      def initialize(client)
        @client = client
      end

      def create(project_id, story_id, params={})
        data = client.post("/projects/#{project_id}/stories/#{story_id}/tasks", params: params).body
        Resources::Task.new(data)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tracker_api-1.0.0 lib/tracker_api/endpoints/task.rb
tracker_api-0.2.12 lib/tracker_api/endpoints/task.rb
tracker_api-0.2.11 lib/tracker_api/endpoints/task.rb
tracker_api-0.2.10 lib/tracker_api/endpoints/task.rb