Sha256: b177816a543405b33d8eeb42f113a5373f890bee02cff30fc2169ab8749196c2
Contents?: true
Size: 1013 Bytes
Versions: 5
Compression:
Stored size: 1013 Bytes
Contents
# frozen_string_literal: true module Yoti module DocScan module Session module Retrieve class BreakdownResponse # @return [String] attr_reader :sub_check # @return [String] attr_reader :result # @return [Array<DetailsResponse>] attr_reader :details # # @param [Hash] breakdown # def initialize(breakdown) Validation.assert_is_a(String, breakdown['sub_check'], 'sub_check', true) @sub_check = breakdown['sub_check'] Validation.assert_is_a(String, breakdown['result'], 'result', true) @result = breakdown['result'] if breakdown['details'].nil? @details = [] else Validation.assert_is_a(Array, breakdown['details'], 'details') @details = breakdown['details'].map { |details| DetailsResponse.new(details) } end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems