Sha256: a33dac50bd25c7d45a75620bc59b4ec97ed1de7940a9aed240b4f99b762ff2b7

Contents?: true

Size: 557 Bytes

Versions: 3

Compression:

Stored size: 557 Bytes

Contents

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

    def self.get(params, opts = {})
      send_request :get, api_url('payers', params, :payer_id), params, **opts.merge(required_params: [:payer_id])
    end

    def self.search_options(params, opts = {})
      payer_id = Util.value(params, :payer_id)
      url = payer_id.nil? ? '/payers/search_options' : "/payers/#{payer_id}/search_options"
      send_request :get, url, params, **opts
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
eligible-3.1.0.beta3 lib/eligible/payer.rb
eligible-3.1.0.beta2 lib/eligible/payer.rb
eligible-3.1.0.beta1 lib/eligible/payer.rb