Class: Identisure::BankIdNo::Failed

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(id:, error:, ref_id: nil) ⇒ Failed

Returns a new instance of Failed.



133
134
135
# File 'lib/identisure/bank_id_no.rb', line 133

def initialize(id:, error:, ref_id: nil)
  @id = id; @ref_id = ref_id; @error = error
end

Instance Attribute Details

#error ⇒ Object (readonly)

Returns the value of attribute error.



131
132
133
# File 'lib/identisure/bank_id_no.rb', line 131

def error
  @error
end

#id ⇒ Object (readonly)

Returns the value of attribute id.



131
132
133
# File 'lib/identisure/bank_id_no.rb', line 131

def id
  @id
end

#ref_id ⇒ Object (readonly)

Returns the value of attribute ref_id.



131
132
133
# File 'lib/identisure/bank_id_no.rb', line 131

def ref_id
  @ref_id
end

Class Method Details

.from_json(d) ⇒ Object



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

def self.from_json(d) = new(id: d['id'], ref_id: d['refId'], error: d['error'])

Instance Method Details

#deconstruct_keys(_) ⇒ Object



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

def deconstruct_keys(_) = { id: @id, ref_id: @ref_id, error: @error }