Sha256: 3f07db75b5aaaab8aca1b732e2f80e17113d40986b4f9d3222d54584de096493
Contents?: true
Size: 627 Bytes
Versions: 33
Compression:
Stored size: 627 Bytes
Contents
module Catalogcat class Client < Footrest::Client module Enrollments def list_enrollments(page = 1, params = {}) get("/api/v1/enrollments?page=#{page}&per_page=100", params) end def create_enrollment(params = {}) post('api/v1/enrollments', params) end def update_enrollment(id, params = {}) put("/api/v1/enrollments/#{id}", params) end def get_enrollment(id, params = {}) get("/api/v1/enrollments/#{id}", params) end def delete_enrollment(enrollment) delete("/api/v1/enrollments/#{enrollment}") end end end end
Version data entries
33 entries across 33 versions & 1 rubygems