Module: FileboundClient::Endpoints::Assignments

Defined in:
lib/filebound_client/endpoints/assignments.rb

Overview

Module for Assignments resource endpoint

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object

This will call macros to create resource methods on the fly



6
7
8
9
10
11
# 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

Instance Method Details

#assignments_projects(query_params = nil) ⇒ Array

Gets the projects that the user has assignments in

Parameters:

  • query_params (Hash) (defaults to: nil)

    optional query params to pass to the request

Returns:

  • (Array)

    array of assignments



16
17
18
# File 'lib/filebound_client/endpoints/assignments.rb', line 16

def assignments_projects(query_params = nil)
  get('/assignments/projects', query_params)
end