Sha256: 9053d04b488f4e614705cd72445d73f16ff0e64c283524fb3f4ef61732f00fe0

Contents?: true

Size: 479 Bytes

Versions: 12

Compression:

Stored size: 479 Bytes

Contents

module Checkr
  class Document < APIResource

    attribute :download_uri
    attribute :filesize
    attribute :filename
    attribute :content_type
    attribute :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

12 entries across 12 versions & 1 rubygems

Version Path
checkr-official-1.8.0 lib/checkr/document.rb
checkr-official-1.7.1 lib/checkr/document.rb
checkr-official-1.7 lib/checkr/document.rb
checkr-official-1.6 lib/checkr/document.rb
checkr-official-1.5.4 lib/checkr/document.rb
checkr-official-1.5.3 lib/checkr/document.rb
checkr-official-1.5.2 lib/checkr/document.rb
checkr-official-1.5.1 lib/checkr/document.rb
checkr-official-1.5.0 lib/checkr/document.rb
checkr-official-1.4.0 lib/checkr/document.rb
checkr-official-1.3.1 lib/checkr/document.rb
checkr-official-1.2.1 lib/checkr/document.rb