Module: FileboundClient::Endpoints::Assignments
- Defined in:
- lib/filebound_client/endpoints/assignments.rb
Overview
Module for Assignments resource endpoint
Class Method Summary collapse
-
.included(klass) ⇒ Object
This will call macros to create resource methods on the fly.
Instance Method Summary collapse
-
#assignments_projects(query_params = nil) ⇒ Array
Gets the projects that the user has assignments in.
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
16 17 18 |
# File 'lib/filebound_client/endpoints/assignments.rb', line 16 def assignments_projects(query_params = nil) get('/assignments/projects', query_params) end |