Sha256: e2f94308d860dc0e36bca8e12ab4c8d40d82f5915e1dc1497986b7acab90dae0

Contents?: true

Size: 491 Bytes

Versions: 2

Compression:

Stored size: 491 Bytes

Contents

module Eligible

  class Enrollment < APIResource

    def self.get(params, api_key=nil)
      response, api_key = Eligible.request(:get, "/enrollment.json", api_key, params)
      Util.convert_to_eligible_object(response, api_key)
    end

    def self.post(params, api_key=nil)
      response, api_key = Eligible.request(:post, "/enrollment.json", api_key, params)
      Util.convert_to_eligible_object(response, api_key)
    end

    def all
      error ? nil : to_hash
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eligible-2.1 lib/eligible/enrollment.rb
eligible-2.0 lib/eligible/enrollment.rb