Sha256: c5382f64000958564aec5df063753a95ca31589d568e93d40504bfe62c3714bd
Contents?: true
Size: 962 Bytes
Versions: 17
Compression:
Stored size: 962 Bytes
Contents
# frozen_string_literal: true module Eligible module V1_0 class Estimate < RestAPIBase ENDPOINT_NAME = 'estimates'.freeze def self.process(id, opts = {}) send_request :post, "/#{endpoint_name}/#{object_id(id)}/process", rest_api_params(id), opts.merge(required_params: [:id]) end def self.reestimate(id, opts = {}) send_request :post, "/#{endpoint_name}/#{object_id(id)}/reestimate", rest_api_params(id), opts.merge(required_params: [:id]) end def self.convert(id, opts = {}) send_request :post, "/#{endpoint_name}/#{object_id(id)}/convert", rest_api_params(id), opts.merge(required_params: [:id]) end def self.update(_params, _opts = {}) fail NotImplementedError, "Not an allowed operation for this endpoint" end def self.delete(_params, _opts = {}) fail NotImplementedError, "Not an allowed operation for this endpoint" end end end end
Version data entries
17 entries across 17 versions & 1 rubygems