Class: Veriff::Decision

Inherits:
Model
  • Object
show all
Defined in:
lib/veriff/decision.rb

Instance Method Summary collapse

Methods inherited from Model

api_collection_name, #initialize, #method_missing, #respond_to_missing?

Constructor Details

This class inherits a constructor from Veriff::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Veriff::Model

Instance Method Details

#documentObject



9
10
11
# File 'lib/veriff/decision.rb', line 9

def document
  @document ||= OpenStruct.new(@data_hash[:document])
end

#personObject



5
6
7
# File 'lib/veriff/decision.rb', line 5

def person
  @person ||= OpenStruct.new(@data_hash[:person])
end