Sha256: 3f07db75b5aaaab8aca1b732e2f80e17113d40986b4f9d3222d54584de096493

Contents?: true

Size: 627 Bytes

Versions: 33

Compression:

Stored size: 627 Bytes

Contents

module Catalogcat
  class Client < Footrest::Client
    module Enrollments
      def list_enrollments(page = 1, params = {})
        get("/api/v1/enrollments?page=#{page}&per_page=100", params)
      end

      def create_enrollment(params = {})
        post('api/v1/enrollments', params)
      end

      def update_enrollment(id, params = {})
        put("/api/v1/enrollments/#{id}", params)
      end

      def get_enrollment(id, params = {})
        get("/api/v1/enrollments/#{id}", params)
      end

      def delete_enrollment(enrollment)
        delete("/api/v1/enrollments/#{enrollment}")
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
bearcat-1.5.37 lib/catalogcat/client/enrollments.rb
bearcat-1.5.36 lib/catalogcat/client/enrollments.rb
bearcat-1.5.35 lib/catalogcat/client/enrollments.rb
bearcat-1.5.34 lib/catalogcat/client/enrollments.rb
bearcat-1.5.33 lib/catalogcat/client/enrollments.rb
bearcat-1.5.32 lib/catalogcat/client/enrollments.rb
bearcat-1.5.31 lib/catalogcat/client/enrollments.rb
bearcat-1.5.30 lib/catalogcat/client/enrollments.rb
bearcat-1.5.29 lib/catalogcat/client/enrollments.rb
bearcat-1.5.28 lib/catalogcat/client/enrollments.rb
bearcat-1.5.28.beta1 lib/catalogcat/client/enrollments.rb
bearcat-1.5.26 lib/catalogcat/client/enrollments.rb
bearcat-1.5.24 lib/catalogcat/client/enrollments.rb
bearcat-1.5.23 lib/catalogcat/client/enrollments.rb
bearcat-1.5.20 lib/catalogcat/client/enrollments.rb
bearcat-1.5.19 lib/catalogcat/client/enrollments.rb
bearcat-1.5.17 lib/catalogcat/client/enrollments.rb
bearcat-1.5.16 lib/catalogcat/client/enrollments.rb
bearcat-1.5.15 lib/catalogcat/client/enrollments.rb
bearcat-1.5.14 lib/catalogcat/client/enrollments.rb