Sha256: 63fb2ca6f900d858956a8d2ad2ac313b522c39f2b1dfaf2de84fcd693e0ee856

Contents?: true

Size: 698 Bytes

Versions: 3

Compression:

Stored size: 698 Bytes

Contents

module Checkr
  class AdverseAction < APIResource
    attribute :status
    attribute :report_id
    attribute :post_notice_scheduled_at
    attribute :post_notice_ready_at
    attribute :canceled_at
    attribute :individualized_assessment_engaged
    attribute :adverse_items, APIList.constructor(:AdverseItem)

    api_class_method :create, :post, '/v1/reports/:report_id/adverse_actions'
    api_class_method :retrieve, :get, ':path/:id', :arguments => [:id]
    api_class_method :cancel, :delete, ':path/:id', :arguments => [:id]

    api_instance_method :cancel, :delete

    def self.path
      '/v1/adverse_actions'
    end

    APIClass.register_subclass(self, 'adverse_action')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
checkr-official-1.8.0 lib/checkr/adverse_action.rb
checkr-official-1.7.1 lib/checkr/adverse_action.rb
checkr-official-1.7 lib/checkr/adverse_action.rb