Class: Identisure::AgeVerification::Completed
- Inherits:
-
Object
- Object
- Identisure::AgeVerification::Completed
- Defined in:
- lib/identisure/age_verification.rb
Instance Attribute Summary collapse
-
#age_verified ⇒ Object
readonly
Returns the value of attribute age_verified.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Class Method Summary collapse
Instance Method Summary collapse
- #deconstruct_keys(_) ⇒ Object
-
#initialize(id:, age_verified:) ⇒ Completed
constructor
A new instance of Completed.
Constructor Details
#initialize(id:, age_verified:) ⇒ Completed
Returns a new instance of Completed.
44 45 46 |
# File 'lib/identisure/age_verification.rb', line 44 def initialize(id:, age_verified:) @id = id; @age_verified = age_verified end |
Instance Attribute Details
#age_verified ⇒ Object (readonly)
Returns the value of attribute age_verified.
42 43 44 |
# File 'lib/identisure/age_verification.rb', line 42 def age_verified @age_verified end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
42 43 44 |
# File 'lib/identisure/age_verification.rb', line 42 def id @id end |
Class Method Details
.from_json(d) ⇒ Object
50 |
# File 'lib/identisure/age_verification.rb', line 50 def self.from_json(d) = new(id: d['id'], age_verified: d['ageVerified']) |
Instance Method Details
#deconstruct_keys(_) ⇒ Object
48 |
# File 'lib/identisure/age_verification.rb', line 48 def deconstruct_keys(_) = { id: @id, age_verified: @age_verified } |