Sha256: 05e9c82800100c6b5303953293d3cf34f865269ea56275509426082066ddb2b7

Contents?: true

Size: 397 Bytes

Versions: 16

Compression:

Stored size: 397 Bytes

Contents

module Bearcat
  class Client < Footrest::Client
    module Courses

      def course(course)
        get("/api/v1/courses/#{course}")
      end

      def create_course(account_id, params={})
        post("/api/v1/accounts/#{account_id}/courses", params)
      end

      def list_course_users(course, params={})
        get("/api/v1/courses/#{course}/users", params)
      end

    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
bearcat-0.9.16 lib/bearcat/client/courses.rb
bearcat-0.9.15 lib/bearcat/client/courses.rb
bearcat-0.9.14 lib/bearcat/client/courses.rb
bearcat-0.9.13 lib/bearcat/client/courses.rb
bearcat-0.9.12 lib/bearcat/client/courses.rb
bearcat-0.9.10 lib/bearcat/client/courses.rb
bearcat-0.9.9 lib/bearcat/client/courses.rb
bearcat-0.9.8 lib/bearcat/client/courses.rb
bearcat-0.9.7 lib/bearcat/client/courses.rb
bearcat-0.9.6 lib/bearcat/client/courses.rb
bearcat-0.9.5 lib/bearcat/client/courses.rb
bearcat-0.9.4 lib/bearcat/client/courses.rb
bearcat-0.9.3 lib/bearcat/client/courses.rb
bearcat-0.9.2 lib/bearcat/client/courses.rb
bearcat-0.9.1 lib/bearcat/client/courses.rb
bearcat-0.9 lib/bearcat/client/courses.rb