Sha256: dc0b387f01e5571d9b2c40ed7062129cfe6a7a5821e28752d92ae6be48f757f1

Contents?: true

Size: 459 Bytes

Versions: 6

Compression:

Stored size: 459 Bytes

Contents

module Checkr
  class Document < APIResource

    attribute :download_uri
    attribute :filesize
    attribute :filename
    attribute :content_type

    api_class_method :all, :get, "/v1/candidates/:candidate_id/documents", :constructor => :DocumentList
    api_class_method :create, :post, "/v1/candidates/:candidate_id/documents"

    # Method #create and #all are all on the Candidate instance

    APIClass.register_subclass(self, "document")
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
checkr-official-1.2.0 lib/checkr/document.rb
checkr-official-1.1.2 lib/checkr/document.rb
checkr-official-1.1.1 lib/checkr/document.rb
checkr-official-1.1.0 lib/checkr/document.rb
checkr-official-1.0.2 lib/checkr/document.rb
checkr-official-1.0.1 lib/checkr/document.rb