Class: Eligible::Coverage

Inherits:
CoverageResource show all
Defined in:
lib/eligible/coverage.rb

Instance Attribute Summary

Attributes inherited from EligibleObject

#api_key, #eligible_id

Class Method Summary collapse

Methods inherited from CoverageResource

get, post

Methods inherited from APIResource

api_url, class_name, require_param, send_request, url

Methods inherited from EligibleObject

#[], #[]=, construct_from, #each, #error, #initialize, #keys, #refresh_from, #to_hash, #to_json, #values

Constructor Details

This class inherits a constructor from Eligible::EligibleObject

Class Method Details

.batch_medicare_post(params, api_key = nil) ⇒ Object



15
16
17
# File 'lib/eligible/coverage.rb', line 15

def self.batch_medicare_post(params, api_key = nil)
  send_request(:post, '/medicare/coverage/batch.json', api_key, **params)
end

.cost_estimate(params, api_key = nil) ⇒ Object



11
12
13
# File 'lib/eligible/coverage.rb', line 11

def self.cost_estimate(params, api_key = nil)
  send_request(:get, '/coverage/cost_estimates.json', api_key, **params)
end

.get_uriObject



3
4
5
# File 'lib/eligible/coverage.rb', line 3

def self.get_uri
  return '/coverage/all.json'
end

.post_uriObject



7
8
9
# File 'lib/eligible/coverage.rb', line 7

def self.post_uri
  return '/coverage/all/batch.json'
end