Sha256: 9ccfbb0e584b9eb99659d54f8095a60edeb286988d1635a4b276242c4cc03ef2

Contents?: true

Size: 532 Bytes

Versions: 1

Compression:

Stored size: 532 Bytes

Contents

module Shingoncoder
  class Job
    class << self
      # @param [Hash] options
      # @option [String] :input the url to the file
      def create(options = {})
        id = Backend::Job.create(options)
        # TODO in the future the backend could be via a HTTP API
        Response.new('id' => id, 'code' => 201)
      end

      def cancel
        fail NotImplementedError
      end

      def progress
        fail NotImplementedError
      end

      def details
        fail NotImplementedError
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shingoncoder-0.0.1 lib/shingoncoder/job.rb