Sha256: 989ca81d51bd50522efd89a702087633d5ad91a55b91e6508a0bc250f2022afe

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 KB

Contents

module Checkr
  class Candidate < APIResource

    attribute :first_name
    attribute :middle_name
    attribute :last_name
    attribute :email
    attribute :phone
    attribute :zipcode
    attribute :dob
    attribute :ssn
    attribute :driver_license_number
    attribute :driver_license_state
    attribute :previous_driver_license_number
    attribute :previous_driver_license_state
    attribute :copy_requested
    attribute :custom_id
    attribute :reports, :ReportList, :nested => true
    attribute_writer_alias :report_ids, :reports
    attribute :geos, APIList.constructor(:Geo)
    attribute_writer_alias :geo_ids, :geos
    attribute :adjudication
    attribute :documents, :DocumentList, :nested => true, :default => {}

    api_class_method :all, :get, :constructor => APIList.constructor(:Candidate)
    api_class_method :create, :post
    api_class_method :retrieve, :get, ":path/:id", :arguments => [:id]

    def self.path
      "/v1/candidates"
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
checkr-official-1.0.2 lib/checkr/candidate.rb
checkr-official-1.0.1 lib/checkr/candidate.rb
checkr-official-1.0.0 lib/checkr/candidate.rb