Class: Identisure::BankIdNo::SignResult

Inherits:
Object
  • Object
show all
Defined in:
lib/identisure/bank_id_no.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(end_user:, merchant:, document_hash:) ⇒ SignResult

Returns a new instance of SignResult.



59
60
61
# File 'lib/identisure/bank_id_no.rb', line 59

def initialize(end_user:, merchant:, document_hash:)
  @end_user = end_user; @merchant = merchant; @document_hash = document_hash
end

Instance Attribute Details

#document_hash ⇒ Object (readonly)

Returns the value of attribute document_hash.



57
58
59
# File 'lib/identisure/bank_id_no.rb', line 57

def document_hash
  @document_hash
end

#end_user ⇒ Object (readonly)

Returns the value of attribute end_user.



57
58
59
# File 'lib/identisure/bank_id_no.rb', line 57

def end_user
  @end_user
end

#merchant ⇒ Object (readonly)

Returns the value of attribute merchant.



57
58
59
# File 'lib/identisure/bank_id_no.rb', line 57

def merchant
  @merchant
end

Class Method Details

.from_json(d) ⇒ Object



64
# File 'lib/identisure/bank_id_no.rb', line 64

def self.from_json(d) = new(end_user: d['endUser'], merchant: d['merchant'], document_hash: d['hash'])

Instance Method Details

#deconstruct_keys(_) ⇒ Object



63
# File 'lib/identisure/bank_id_no.rb', line 63

def deconstruct_keys(_) = { end_user: @end_user, merchant: @merchant, document_hash: @document_hash }