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.4.10 lib/bearcat/client/pages.rb
bearcat-1.4.9 lib/bearcat/client/pages.rb
bearcat-1.4.8 lib/bearcat/client/pages.rb
bearcat-1.4.7 lib/bearcat/client/pages.rb
bearcat-1.4.6 lib/bearcat/client/pages.rb
bearcat-1.4.5 lib/bearcat/client/pages.rb
bearcat-1.4.4 lib/bearcat/client/pages.rb
bearcat-1.4.3 lib/bearcat/client/pages.rb
bearcat-1.4.2 lib/bearcat/client/pages.rb
bearcat-1.4.1 lib/bearcat/client/pages.rb
bearcat-1.4.0 lib/bearcat/client/pages.rb
bearcat-1.3.55 lib/bearcat/client/pages.rb
bearcat-1.3.53 lib/bearcat/client/pages.rb
bearcat-1.3.52 lib/bearcat/client/pages.rb
bearcat-1.3.51 lib/bearcat/client/pages.rb
bearcat-1.3.49 lib/bearcat/client/pages.rb
bearcat-1.3.48 lib/bearcat/client/pages.rb
bearcat-1.3.47 lib/bearcat/client/pages.rb
bearcat-1.3.46 lib/bearcat/client/pages.rb
bearcat-1.3.45 lib/bearcat/client/pages.rb