Class: Identisure::AgeVerification::Failed
- Inherits:
-
Object
- Object
- Identisure::AgeVerification::Failed
- Defined in:
- lib/identisure/age_verification.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Class Method Summary collapse
Instance Method Summary collapse
- #deconstruct_keys(_) ⇒ Object
-
#initialize(id:, error:) ⇒ Failed
constructor
A new instance of Failed.
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 } |