class Yoti::DocScan::Support::SupportedDocumentsResponse
Attributes
supported_countries[R]
@return [Array<SupportedCountry>]
Public Class Methods
new(response)
click to toggle source
@param [Hash] response
# File lib/yoti/doc_scan/support/supported_documents.rb, line 13 def initialize(response) if response['supported_countries'].nil? @supported_countries = [] else Validation.assert_is_a(Array, response['supported_countries'], 'supported_countries') @supported_countries = response['supported_countries'].map { |country| SupportedCountry.new(country) } end end