Class: Universign::SignerInfos

Inherits:
Signer
  • Object
show all
Defined in:
lib/universign/signer_infos.rb

Instance Attribute Summary

Attributes inherited from Signer

#params

Instance Method Summary collapse

Methods inherited from Signer

#first_name, #first_name=, from_data, #initialize, #last_name, #last_name=

Constructor Details

This class inherits a constructor from Universign::Signer

Instance Method Details

#action_dateString

the action date

Returns:

  • (String)


38
39
40
# File 'lib/universign/signer_infos.rb', line 38

def action_date
  data['actionDate']
end

#emailString

The signer’s email

Returns:

  • (String)


52
53
54
# File 'lib/universign/signer_infos.rb', line 52

def email
  data['email']
end

#errorString

The error message in case status == ‘failed`

Returns:

  • (String)


24
25
26
# File 'lib/universign/signer_infos.rb', line 24

def error
  data['error']
end

#refused_docsArray<Integer>

List of refused docs indexes

Returns:

  • (Array<Integer>)


45
46
47
# File 'lib/universign/signer_infos.rb', line 45

def refused_docs
  data['refusedDocs']
end

#statusObject

The status of the signer

The existing statuses are:

| Status | Description | |:——————–:|:——————————————————————————————-:| | ‘waiting` | The signer has not yet been invited to sign. Others signers must sign prior to this user | | `ready` | The signer has been invited to sign, but has not tried yet | | `accessed` | The signer has accessed the signature service | | `code-sent` | The signer agreed to sign and has been sent an OTP | | `signed` | The signer has successfully signed. | | `pending-validation` | The signer has successfully signed and is pending RA validation | | `canceled` | The signer refused to sign, or one of the previous signers canceled or failed its signature | | `failed` | An error occured during the signature. In this case, error is set |



17
18
19
# File 'lib/universign/signer_infos.rb', line 17

def status
  data['status']
end

#urlString

The URL of the signature page

Returns:

  • (String)


31
32
33
# File 'lib/universign/signer_infos.rb', line 31

def url
  data['url']
end