Sha256: 426f8a556c336b5a9b5f323dce512fc4147425335e924bb0e57a7514cfee30b2

Contents?: true

Size: 1.94 KB

Versions: 12

Compression:

Stored size: 1.94 KB

Contents

module Universign
  class SignerInfos < Signer
    # 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                           |
    def status
      data['status']
    end

    # The error message in case status == `failed`
    #
    # @return [String]
    def error
      data['error']
    end

    # The URL of the signature page
    #
    # @return [String]
    def url
      data['url']
    end

    # the action date
    #
    # @return [String]
    def action_date
      data['actionDate']
    end

    # List of refused docs indexes
    #
    # @return [Array<Integer>]
    def refused_docs
      data['refusedDocs']
    end

    # The signer’s email
    #
    # @return [String]
    def email
      data['email']
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ruby_universign-1.6.0 lib/universign/signer_infos.rb
ruby_universign-1.5.1 lib/universign/signer_infos.rb
ruby_universign-1.5.0 lib/universign/signer_infos.rb
ruby_universign-1.4.0 lib/universign/signer_infos.rb
ruby_universign-1.3.1 lib/universign/signer_infos.rb
ruby_universign-1.2.1 lib/universign/signer_infos.rb
ruby_universign-1.2.0 lib/universign/signer_infos.rb
ruby_universign-1.1.1 lib/universign/signer_infos.rb
ruby_universign-1.1.0 lib/universign/signer_infos.rb
ruby_universign-1.0.1 lib/universign/signer_infos.rb
ruby_universign-1.0.0 lib/universign/signer_infos.rb
ruby_universign-0.2.0 lib/universign/signer_infos.rb