Class: Identisure::BankIdNo::SignedDocument
- Inherits:
-
Object
- Object
- Identisure::BankIdNo::SignedDocument
- Defined in:
- lib/identisure/bank_id_no.rb
Instance Attribute Summary collapse
-
#document_hash ⇒ Object
readonly
Returns the value of attribute document_hash.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Class Method Summary collapse
Instance Method Summary collapse
- #deconstruct_keys(_) ⇒ Object
-
#initialize(id:, document_hash:) ⇒ SignedDocument
constructor
A new instance of SignedDocument.
Constructor Details
#initialize(id:, document_hash:) ⇒ SignedDocument
Returns a new instance of SignedDocument.
70 71 72 |
# File 'lib/identisure/bank_id_no.rb', line 70 def initialize(id:, document_hash:) @id = id; @document_hash = document_hash end |
Instance Attribute Details
#document_hash ⇒ Object (readonly)
Returns the value of attribute document_hash.
68 69 70 |
# File 'lib/identisure/bank_id_no.rb', line 68 def document_hash @document_hash end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
68 69 70 |
# File 'lib/identisure/bank_id_no.rb', line 68 def id @id end |
Class Method Details
.from_json(d) ⇒ Object
75 |
# File 'lib/identisure/bank_id_no.rb', line 75 def self.from_json(d) = new(id: d['id'], document_hash: d['hash']) |
Instance Method Details
#deconstruct_keys(_) ⇒ Object
74 |
# File 'lib/identisure/bank_id_no.rb', line 74 def deconstruct_keys(_) = { id: @id, document_hash: @document_hash } |