Class: Fountain::DocumentSignature
- Inherits:
-
Object
- Object
- Fountain::DocumentSignature
- Defined in:
- lib/fountain/document_signature.rb
Overview
Fountain Document Signature
Instance Attribute Summary collapse
-
#raw_data ⇒ Object
readonly
Raw document signature data.
Instance Method Summary collapse
-
#initialize(data) ⇒ DocumentSignature
constructor
A new instance of DocumentSignature.
- #inspect ⇒ Object
-
#signature_id ⇒ Object
Signature ID.
-
#status ⇒ Object
Status.
-
#vendor ⇒ Object
Vendor.
Constructor Details
#initialize(data) ⇒ DocumentSignature
Returns a new instance of DocumentSignature.
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_data ⇒ Object (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
#inspect ⇒ Object
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_id ⇒ Object
Signature ID
19 20 21 |
# File 'lib/fountain/document_signature.rb', line 19 def signature_id raw_data['signature_id'] end |
#status ⇒ Object
Status
29 30 31 |
# File 'lib/fountain/document_signature.rb', line 29 def status raw_data['status'] end |
#vendor ⇒ Object
Vendor
24 25 26 |
# File 'lib/fountain/document_signature.rb', line 24 def vendor raw_data['vendor'] end |