Sha256: 6aeea943e9725000e19c4138d0d694fae58368f213cee5f0ea3c83b3bf2921c1

Contents?: true

Size: 554 Bytes

Versions: 3

Compression:

Stored size: 554 Bytes

Contents

module Eligible
  class Payer < APIResource
    def self.list(params, api_key = nil)
      send_request(:get, api_url('payers'), api_key, **params)
    end

    def self.get(params, api_key = nil)
      send_request(:get, api_url('payers', params, :payer_id), api_key, params, :payer_id)
    end

    def self.search_options(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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
eligible-3.0.2 lib/eligible/payer.rb
eligible-3.0.1 lib/eligible/payer.rb
eligible-3.0.0 lib/eligible/payer.rb