Sha256: d019dcaa779ba04078aae577774d549c95eab4018e3e6572df8f43e2d2fe4a41

Contents?: true

Size: 550 Bytes

Versions: 24

Compression:

Stored size: 550 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

24 entries across 24 versions & 1 rubygems

Version Path
eligible-2.9.17 lib/eligible/payer.rb
eligible-2.9.16 lib/eligible/payer.rb
eligible-2.9.15 lib/eligible/payer.rb
eligible-2.9.14 lib/eligible/payer.rb
eligible-2.9.13 lib/eligible/payer.rb
eligible-2.9.12 lib/eligible/payer.rb
eligible-2.9.11 lib/eligible/payer.rb
eligible-2.9.10 lib/eligible/payer.rb
eligible-2.9.9 lib/eligible/payer.rb
eligible-2.9.8 lib/eligible/payer.rb
eligible-2.9.7 lib/eligible/payer.rb
eligible-2.9.6 lib/eligible/payer.rb
eligible-2.9.5 lib/eligible/payer.rb
eligible-2.9.4 lib/eligible/payer.rb
eligible-2.9.3 lib/eligible/payer.rb
eligible-2.9.2 lib/eligible/payer.rb
eligible-2.9.1 lib/eligible/payer.rb
eligible-2.8.2 lib/eligible/payer.rb
eligible-2.8.1 lib/eligible/payer.rb
eligible-2.8.0 lib/eligible/payer.rb