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