Sha256: 56cc49bfec49f92f775248cde7fe7827991fcbc1953a03967c1c7e0b4e346720

Contents?: true

Size: 726 Bytes

Versions: 13

Compression:

Stored size: 726 Bytes

Contents

module Checkr
  class Invitation < APIResource

    attribute :uri
    attribute :invitation_url
    attribute :status
    attribute :created_at
    attribute :expires_at
    attribute :completed_at
    attribute :deleted_at
    attribute :package
    attribute :candidate, :Candidate
    attribute_writer_alias :candidate_id, :candidate

    api_class_method :all, :get,
                     constructor: APIList.constructor(:Invitation)
    api_class_method :retrieve, :get, ':path/:id', arguments: [:id]
    api_class_method :create, :post
    api_class_method :cancel, :delete, ':path/:id', arguments: [:id]

    def self.path
      '/v1/invitations'
    end

    APIClass.register_subclass(self, 'invitation')

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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