Class: Eligible::Payer
- Inherits:
-
APIResource
- Object
- EligibleObject
- APIResource
- Eligible::Payer
- Defined in:
- lib/eligible/payer.rb
Instance Attribute Summary
Attributes inherited from EligibleObject
Class Method Summary collapse
- .get(params, api_key = nil) ⇒ Object
- .list(params, api_key = nil) ⇒ Object
- .search_options(params, api_key = nil) ⇒ Object
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
.get(params, api_key = nil) ⇒ Object
7 8 9 |
# File 'lib/eligible/payer.rb', line 7 def self.get(params, api_key = nil) send_request(:get, api_url('payers', params, :payer_id), api_key, params, :payer_id) end |
.list(params, api_key = nil) ⇒ Object
3 4 5 |
# File 'lib/eligible/payer.rb', line 3 def self.list(params, api_key = nil) send_request(:get, api_url('payers'), api_key, **params) end |
.search_options(params, api_key = nil) ⇒ Object
11 12 13 14 15 |
# File 'lib/eligible/payer.rb', line 11 def self.(params, api_key = nil) payer_id = Util.value(params, :payer_id) url = payer_id.nil? ? '/payers/search_options' : "/payers/#{payer_id}/search_options" send_request(:get, url, api_key, **params) end |