module FileboundClient::Endpoints::Assignments

Module for Assignments resource endpoint

Public Class Methods

included(klass) click to toggle source

This will call macros to create resource methods on the fly

# File lib/filebound_client/endpoints/assignments.rb, line 6
def self.included(klass)
  klass.instance_eval do
    allow_new :assignment
    allow_all :assignments
  end
end

Public Instance Methods

assignments_projects(query_params = nil) click to toggle source

Gets the projects that the user has assignments in @param [Hash] query_params optional query params to pass to the request @return [Array] array of assignments

# File lib/filebound_client/endpoints/assignments.rb, line 16
def assignments_projects(query_params = nil)
  get('/assignments/projects', query_params)
end