Sha256: 73d505b0581a7040e2e94eaef59f385aa641ff0087ed4169fe1785133a40ad44
Contents?: true
Size: 841 Bytes
Versions: 5
Compression:
Stored size: 841 Bytes
Contents
# frozen_string_literal: true module Yoti module DocScan module Session module Retrieve class ReportResponse # @return [RecommendationResponse] attr_reader :recommendation # @return [Array<BreakdownResponse>] attr_reader :breakdown # # @param [Hash] report # def initialize(report) @recommendation = RecommendationResponse.new(report['recommendation']) unless report['recommendation'].nil? if report['breakdown'].nil? @breakdown = [] else Validation.assert_is_a(Array, report['breakdown'], 'breakdown') @breakdown = report['breakdown'].map { |breakdown| BreakdownResponse.new(breakdown) } end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems