Class: Eligible::Icd

Inherits:
APIResource show all
Defined in:
lib/eligible/icd.rb

Instance Attribute Summary

Attributes inherited from EligibleObject

#api_key, #eligible_id

Class Method Summary collapse

Methods inherited from APIResource

api_url, class_name, endpoint_name, require_param, required_param_validation, rest_api_params, 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

.crosswalk(params, opts = {}) ⇒ Object



12
13
14
# File 'lib/eligible/icd.rb', line 12

def self.crosswalk(params, opts = {})
  send_request :get, "/icds/#{Util.value(params, :type)}/crosswalk/#{Util.value(params, :code)}", params, **opts
end

.describe(params, opts = {}) ⇒ Object



8
9
10
# File 'lib/eligible/icd.rb', line 8

def self.describe(params, opts = {})
  send_request :get, "/icds/#{Util.value(params, :type)}/describe/#{Util.value(params, :code)}", params, **opts
end

.list(params, opts = {}) ⇒ Object



4
5
6
# File 'lib/eligible/icd.rb', line 4

def self.list(params, opts = {})
  send_request :get, "/icds/#{Util.value(params, :type)}", params, **opts
end