Class: Identisure::AgeVerification::Failed

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, error:) ⇒ Failed

Returns a new instance of Failed.



56
57
58
# File 'lib/identisure/age_verification.rb', line 56

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

Instance Attribute Details

#error ⇒ Object (readonly)

Returns the value of attribute error.



54
55
56
# File 'lib/identisure/age_verification.rb', line 54

def error
  @error
end

#id ⇒ Object (readonly)

Returns the value of attribute id.



54
55
56
# File 'lib/identisure/age_verification.rb', line 54

def id
  @id
end

Class Method Details

.from_json(d) ⇒ Object



62
# File 'lib/identisure/age_verification.rb', line 62

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

Instance Method Details

#deconstruct_keys(_) ⇒ Object



60
# File 'lib/identisure/age_verification.rb', line 60

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