Class: Identisure::BankIdSe::Failed

Inherits:
Object
  • Object
show all
Defined in:
lib/identisure/bank_id_se.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.



229
230
231
# File 'lib/identisure/bank_id_se.rb', line 229

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.



227
228
229
# File 'lib/identisure/bank_id_se.rb', line 227

def error
  @error
end

#id ⇒ Object (readonly)

Returns the value of attribute id.



227
228
229
# File 'lib/identisure/bank_id_se.rb', line 227

def id
  @id
end

#ref_id ⇒ Object (readonly)

Returns the value of attribute ref_id.



227
228
229
# File 'lib/identisure/bank_id_se.rb', line 227

def ref_id
  @ref_id
end

Class Method Details

.from_json(d) ⇒ Object



235
# File 'lib/identisure/bank_id_se.rb', line 235

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

Instance Method Details

#deconstruct_keys(_) ⇒ Object



233
# File 'lib/identisure/bank_id_se.rb', line 233

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