Sha256: a47d2b5188cc690f1dc051b75c1a73d75fa8d11b6c764d8e21789addfdee9c4a

Contents?: true

Size: 557 Bytes

Versions: 71

Compression:

Stored size: 557 Bytes

Contents

module Bearcat
  class Client < Footrest::Client
    module Pages

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

      def list_group_pages(group, params={})
        get("/api/v1/groups/#{group}/pages", params)
      end

      def show_course_page(course, url, params={})
        get("/api/v1/courses/#{course}/pages/#{url}", params)
      end

      def show_group_page(group, url, params={})
        get("/api/v1/groups/#{group}/pages/#{url}", params)
      end
      
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
bearcat-1.3.44 lib/bearcat/client/pages.rb
bearcat-1.3.43 lib/bearcat/client/pages.rb
bearcat-1.3.41 lib/bearcat/client/pages.rb
bearcat-1.3.40 lib/bearcat/client/pages.rb
bearcat-1.3.39 lib/bearcat/client/pages.rb
bearcat-1.3.38 lib/bearcat/client/pages.rb
bearcat-1.3.37 lib/bearcat/client/pages.rb
bearcat-1.3.36 lib/bearcat/client/pages.rb
bearcat-1.3.35 lib/bearcat/client/pages.rb
bearcat-1.3.34 lib/bearcat/client/pages.rb
bearcat-1.3.33 lib/bearcat/client/pages.rb
bearcat-1.3.32 lib/bearcat/client/pages.rb
bearcat-1.3.30 lib/bearcat/client/pages.rb
bearcat-1.3.28 lib/bearcat/client/pages.rb
bearcat-1.3.27 lib/bearcat/client/pages.rb
bearcat-1.3.26 lib/bearcat/client/pages.rb
bearcat-1.3.25 lib/bearcat/client/pages.rb
bearcat-1.3.24 lib/bearcat/client/pages.rb
bearcat-1.3.23 lib/bearcat/client/pages.rb
bearcat-1.3.22 lib/bearcat/client/pages.rb