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.21 lib/bearcat/client/pages.rb
bearcat-1.3.20 lib/bearcat/client/pages.rb
bearcat-1.3.19 lib/bearcat/client/pages.rb
bearcat-1.3.18 lib/bearcat/client/pages.rb
bearcat-1.3.17 lib/bearcat/client/pages.rb
bearcat-1.3.16 lib/bearcat/client/pages.rb
bearcat-1.3.15 lib/bearcat/client/pages.rb
bearcat-1.3.14 lib/bearcat/client/pages.rb
bearcat-1.3.13 lib/bearcat/client/pages.rb
bearcat-1.3.12 lib/bearcat/client/pages.rb
bearcat-1.3.11 lib/bearcat/client/pages.rb
bearcat-1.3.10 lib/bearcat/client/pages.rb
bearcat-1.3.9 lib/bearcat/client/pages.rb
bearcat-1.3.8 lib/bearcat/client/pages.rb
bearcat-1.3.7 lib/bearcat/client/pages.rb
bearcat-1.3.6 lib/bearcat/client/pages.rb
bearcat-1.3.5 lib/bearcat/client/pages.rb
bearcat-1.3.4 lib/bearcat/client/pages.rb
bearcat-1.3.3 lib/bearcat/client/pages.rb
bearcat-1.3.2 lib/bearcat/client/pages.rb