Sha256: 95e4818cf4b308f4fb8d8dd757d912a1137553df843067cef9d92b943373f2a2

Contents?: true

Size: 485 Bytes

Versions: 2

Compression:

Stored size: 485 Bytes

Contents

module Bearcat
  class Client < Footrest::Client
    module Enrollments

      def user_enrollments(user, params={})
        get("/api/v1/users/#{user.to_s}/enrollments", params)
      end

      def enroll_in_section(section, params={})
        post("/api/v1/sections/#{section.to_s}/enrollments", params)
      end

      def conclude_enrollment(course, enrollment, params={})
        delete("/api/v1/courses/#{course}/enrollments/#{enrollment}", params)
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bearcat-0.1.1 lib/bearcat/client/enrollments.rb
bearcat-0.1 lib/bearcat/client/enrollments.rb