Class: Eligible::V1_0::Estimate
Constant Summary
collapse
- ENDPOINT_NAME =
'estimates'.freeze
Constants inherited
from RestAPIBase
RestAPIBase::REST_API_VERSION
Instance Attribute Summary
#api_key, #eligible_id
Class Method Summary
collapse
Methods inherited from RestAPIBase
create, list, retrieve
Methods inherited from APIResource
api_url, class_name, endpoint_name, require_param, required_param_validation, rest_api_params, send_request, url
#[], #[]=, construct_from, #each, #error, #initialize, #keys, #refresh_from, #to_hash, #to_json, #values
Class Method Details
.convert(id, opts = {}) ⇒ Object
16
17
18
|
# File 'lib/eligible/v1_0/estimate.rb', line 16
def self.convert(id, opts = {})
send_request :post, "/#{endpoint_name}/#{object_id(id)}/convert", rest_api_params(id), **opts.merge(required_params: [:id])
end
|
.delete(_params, _opts = {}) ⇒ Object
24
25
26
|
# File 'lib/eligible/v1_0/estimate.rb', line 24
def self.delete(_params, _opts = {})
fail NotImplementedError, "Not an allowed operation for this endpoint"
end
|
.process(id, opts = {}) ⇒ Object
8
9
10
|
# File 'lib/eligible/v1_0/estimate.rb', line 8
def self.process(id, opts = {})
send_request :post, "/#{endpoint_name}/#{object_id(id)}/process", rest_api_params(id), **opts.merge(required_params: [:id])
end
|
.reestimate(id, opts = {}) ⇒ Object
12
13
14
|
# File 'lib/eligible/v1_0/estimate.rb', line 12
def self.reestimate(id, opts = {})
send_request :post, "/#{endpoint_name}/#{object_id(id)}/reestimate", rest_api_params(id), **opts.merge(required_params: [:id])
end
|
.update(_params, _opts = {}) ⇒ Object
20
21
22
|
# File 'lib/eligible/v1_0/estimate.rb', line 20
def self.update(_params, _opts = {})
fail NotImplementedError, "Not an allowed operation for this endpoint"
end
|