Sha256: ec7a07a253f618cd1cdf68919c831c2f93204c99b9877f2181c9bbc97a47d285

Contents?: true

Size: 627 Bytes

Versions: 4

Compression:

Stored size: 627 Bytes

Contents

# frozen_string_literal: true

module Yoti
  module DocScan
    module Session
      module Retrieve
        class PageResponse
          # @return [String]
          attr_reader :capture_method

          # @return [MediaResponse]
          attr_reader :media

          #
          # @param [Hash] page
          #
          def initialize(page)
            Validation.assert_is_a(String, page['capture_method'], 'capture_method', true)
            @capture_method = page['capture_method']

            @media = MediaResponse.new(page['media']) unless page['media'].nil?
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yoti-1.9.0 lib/yoti/doc_scan/session/retrieve/page_response.rb
yoti-1.8.0 lib/yoti/doc_scan/session/retrieve/page_response.rb
yoti-1.7.1 lib/yoti/doc_scan/session/retrieve/page_response.rb
yoti-1.7.0 lib/yoti/doc_scan/session/retrieve/page_response.rb