Sha256: 2a9416531efa0a4569446ddc3ac300db440fa27729ceaf5ecb88452b292e56c6

Contents?: true

Size: 644 Bytes

Versions: 16

Compression:

Stored size: 644 Bytes

Contents

module FileboundClient
  module Endpoints
    # Module for Assignments resource endpoint
    module Assignments
      # This will call macros to create resource methods on the fly
      def self.included(klass)
        klass.instance_eval do
          allow_new :assignment
          allow_all :assignments
        end
      end

      # 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
      def assignments_projects(query_params = nil)
        get('/assignments/projects', query_params)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
filebound_client-0.4.4 lib/filebound_client/endpoints/assignments.rb
filebound_client-0.4.3 lib/filebound_client/endpoints/assignments.rb
filebound_client-0.4.2 lib/filebound_client/endpoints/assignments.rb
filebound_client-0.4.1 lib/filebound_client/endpoints/assignments.rb
filebound_client-0.3.8 lib/filebound_client/endpoints/assignments.rb
filebound_client-0.3.7 lib/filebound_client/endpoints/assignments.rb
filebound_client-0.3.6 lib/filebound_client/endpoints/assignments.rb
filebound_client-0.3.5 lib/filebound_client/endpoints/assignments.rb
filebound_client-0.3.4 lib/filebound_client/endpoints/assignments.rb
filebound_client-0.3.3 lib/filebound_client/endpoints/assignments.rb
filebound_client-0.3.2 lib/filebound_client/endpoints/assignments.rb
filebound_client-0.3.1 lib/filebound_client/endpoints/assignments.rb
filebound_client-0.3.0 lib/filebound_client/endpoints/assignments.rb
filebound_client-0.2.0 lib/filebound_client/endpoints/assignments.rb
filebound_client-0.1.1 lib/filebound_client/endpoints/assignments.rb
filebound_client-0.1.0 lib/filebound_client/endpoints/assignments.rb