Class: Eligible::CoverageResource
Instance Attribute Summary
#api_key, #eligible_id
Class Method Summary
collapse
Methods inherited from APIResource
api_url, class_name, require_param, send_request, url
#[], #[]=, construct_from, #each, #error, #initialize, #keys, #refresh_from, #to_hash, #to_json, #values
Class Method Details
.get(params, api_key = nil) ⇒ Object
3
4
5
|
# File 'lib/eligible/coverage_resource.rb', line 3
def self.get(params, api_key = nil)
send_request(:get, get_uri, api_key, params)
end
|
.get_uri ⇒ Object
11
12
13
|
# File 'lib/eligible/coverage_resource.rb', line 11
def self.get_uri
fail NotImplementedError, "Please implement class method #{self}.get_uri"
end
|
.post(params, api_key = nil) ⇒ Object
Also known as:
batch_post
7
8
9
|
# File 'lib/eligible/coverage_resource.rb', line 7
def self.post(params, api_key = nil)
send_request(:post, post_uri, api_key, params)
end
|
.post_uri ⇒ Object
15
16
17
|
# File 'lib/eligible/coverage_resource.rb', line 15
def self.post_uri
fail NotImplementedError, "Please implement class method #{self}.post_uri"
end
|