Class: Veriff::Webhooks::Decision
- Extended by:
- Veriff::Webhook
- Defined in:
- lib/veriff/webhooks/decision.rb
Instance Method Summary collapse
- #document ⇒ Object
-
#initialize(body) ⇒ Decision
constructor
A new instance of Decision.
- #person ⇒ Object
Methods included from Veriff::Webhook
Methods inherited from Model
api_collection_name, #method_missing, #respond_to_missing?
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Veriff::Model
Instance Method Details
#document ⇒ Object
16 17 18 |
# File 'lib/veriff/webhooks/decision.rb', line 16 def document @document ||= OpenStruct.new(@data_hash[:document]) end |
#person ⇒ Object
12 13 14 |
# File 'lib/veriff/webhooks/decision.rb', line 12 def person @person ||= OpenStruct.new(@data_hash[:person]) end |