class Eligible::Customer
Public Class Methods
all(params, api_key = nil)
click to toggle source
# File lib/eligible/customer.rb, line 15 def self.all(params, api_key = nil) send_request(:get, api_url('customers'), api_key, params) end
get(params, api_key = nil)
click to toggle source
# File lib/eligible/customer.rb, line 3 def self.get(params, api_key = nil) send_request(:get, api_url('customers', params, :customer_id), api_key, params, :customer_id) end
post(params, api_key = nil)
click to toggle source
# File lib/eligible/customer.rb, line 7 def self.post(params, api_key = nil) send_request(:post, api_url('customers'), api_key, params) end
update(params, api_key = nil)
click to toggle source
# File lib/eligible/customer.rb, line 11 def self.update(params, api_key = nil) send_request(:put, api_url('customers', params, :customer_id), api_key, params, :customer_id) end