Sha256: 617661ed8240a98f244f724d31c8ef737df56463a74fd6bdd0213fb1571d9228

Contents?: true

Size: 566 Bytes

Versions: 12

Compression:

Stored size: 566 Bytes

Contents

module PortaText
  module Command
    module Api
      # The jobs endpoint.
      # https://github.com/PortaText/docs/wiki/REST-API#api_jobs
      #
      # Author::    Marcelo Gornstein (mailto:marcelog@portatext.com)
      # Copyright:: Copyright (c) 2015 PortaText
      # License::   Apache-2.0
      class Jobs < Base
        def id(id)
          set :id, id
        end

        def endpoint(_method)
          return 'jobs' if @args[:id].nil?
          id = @args[:id]
          @args.delete :id
          "jobs/#{id}"
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
portatext-1.1.9 lib/portatext/command/api/jobs.rb
portatext-1.1.8 lib/portatext/command/api/jobs.rb
portatext-1.1.7 lib/portatext/command/api/jobs.rb
portatext-1.1.6 lib/portatext/command/api/jobs.rb
portatext-1.1.5 lib/portatext/command/api/jobs.rb
portatext-1.1.4 lib/portatext/command/api/jobs.rb
portatext-1.1.3 lib/portatext/command/api/jobs.rb
portatext-1.1.2 lib/portatext/command/api/jobs.rb
portatext-1.1.1 lib/portatext/command/api/jobs.rb
portatext-1.1.0 lib/portatext/command/api/jobs.rb
portatext-1.0.0 lib/portatext/command/api/jobs.rb
portatext-1.0.0.pre lib/portatext/command/api/jobs.rb