Sha256: bd1bdfec0a42a2d2bfe4672539e989c5d46f659d1ee3d63272135c1132a94dbd

Contents?: true

Size: 585 Bytes

Versions: 22

Compression:

Stored size: 585 Bytes

Contents

module Eligible
  class Customer < APIResource
    def self.get(params, api_key = nil)
      send_request(:get, api_url('customers', params, :customer_id), api_key, params, :customer_id)
    end

    def self.post(params, api_key = nil)
      send_request(:post, api_url('customers'), api_key, params)
    end

    def self.update(params, api_key = nil)
      send_request(:put, api_url('customers', params, :customer_id), api_key, params, :customer_id)
    end

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

Version data entries

22 entries across 22 versions & 1 rubygems

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