Sha256: 723437cde7a51a239f7f32ee22e9804a194cbfdb9bdccb9d5ffa1b55a2f5b393
Contents?: true
Size: 611 Bytes
Versions: 4
Compression:
Stored size: 611 Bytes
Contents
module Eligible class Customer < APIResource def self.get(params, opts = {}) send_request :get, api_url('customers', params, :customer_id), params, **opts.merge(required_params: [:customer_id]) end def self.post(params, opts = {}) send_request :post, api_url('customers'), params, **opts end def self.update(params, opts = {}) send_request :put, api_url('customers', params, :customer_id), params, **opts.merge(required_params: [:customer_id]) end def self.all(params, opts = {}) send_request :get, api_url('customers'), params, **opts end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
eligible-3.1.0.beta4 | lib/eligible/customer.rb |
eligible-3.1.0.beta3 | lib/eligible/customer.rb |
eligible-3.1.0.beta2 | lib/eligible/customer.rb |
eligible-3.1.0.beta1 | lib/eligible/customer.rb |