Sha256: e3d325ac685857190db1261a15574cb3da68d2c9bb881d4b47f4426d064caf7a

Contents?: true

Size: 545 Bytes

Versions: 3

Compression:

Stored size: 545 Bytes

Contents

module Eligible
  class Enrollment < APIResource

    class << self

      def 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 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

    end

    def enrollment_npis
      values.first[:enrollment_npis]
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
eligible-2.4.3 lib/eligible/enrollment.rb
eligible-2.4.2 lib/eligible/enrollment.rb
eligible-2.4.1 lib/eligible/enrollment.rb