Class: Fountain::DocumentSignature

Inherits:
Object
  • Object
show all
Defined in:
lib/fountain/document_signature.rb

Overview

Fountain Document Signature

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ DocumentSignature

Returns a new instance of DocumentSignature.

Parameters:

  • data (Hash)

    Raw document signature data



14
15
16
# File 'lib/fountain/document_signature.rb', line 14

def initialize(data)
  @raw_data = Util.stringify_hash_keys data
end

Instance Attribute Details

#raw_dataObject (readonly)

Raw document signature data



9
10
11
# File 'lib/fountain/document_signature.rb', line 9

def raw_data
  @raw_data
end

Instance Method Details

#inspectObject



33
34
35
36
37
38
39
40
# File 'lib/fountain/document_signature.rb', line 33

def inspect
  format(
    '#<%<class_name>s:0x%<object_id>p @signature_id="%<signature_id>s">',
    class_name: self.class.name,
    object_id: object_id,
    signature_id: signature_id
  )
end

#signature_idObject

Signature ID



19
20
21
# File 'lib/fountain/document_signature.rb', line 19

def signature_id
  raw_data['signature_id']
end

#statusObject

Status



29
30
31
# File 'lib/fountain/document_signature.rb', line 29

def status
  raw_data['status']
end

#vendorObject

Vendor



24
25
26
# File 'lib/fountain/document_signature.rb', line 24

def vendor
  raw_data['vendor']
end