Class: Identisure::Ftn::Failed

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



79
80
81
# File 'lib/identisure/ftn.rb', line 79

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.



77
78
79
# File 'lib/identisure/ftn.rb', line 77

def error
  @error
end

#id ⇒ Object (readonly)

Returns the value of attribute id.



77
78
79
# File 'lib/identisure/ftn.rb', line 77

def id
  @id
end

#ref_id ⇒ Object (readonly)

Returns the value of attribute ref_id.



77
78
79
# File 'lib/identisure/ftn.rb', line 77

def ref_id
  @ref_id
end

Class Method Details

.from_json(d) ⇒ Object



85
# File 'lib/identisure/ftn.rb', line 85

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

Instance Method Details

#deconstruct_keys(_) ⇒ Object



83
# File 'lib/identisure/ftn.rb', line 83

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