Sha256: 1b49c4bbe59e2f868b7275d27fc913b8e8731f57697b6ecc558f38387fcabdfe

Contents?: true

Size: 680 Bytes

Versions: 10

Compression:

Stored size: 680 Bytes

Contents

# frozen_string_literal: true

module Yoti
  module Share
    class ExtraData
      attr_reader :attribute_issuance_details

      #
      # Constructor
      #
      # @param [Yoti::Protobuf::Sharepubapi::ExtraData] proto
      #
      def initialize(proto)
        @attribute_issuance_details = nil

        proto.list.each do |data_entry|
          if data_entry.type == :THIRD_PARTY_ATTRIBUTE && @attribute_issuance_details.nil?
            attribute = Yoti::Protobuf::Sharepubapi::ThirdPartyAttribute.decode(data_entry.value)
            @attribute_issuance_details = Yoti::Share::AttributeIssuanceDetails.new(attribute)
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
yoti-1.10.0 lib/yoti/share/extra_data.rb
yoti-1.9.0 lib/yoti/share/extra_data.rb
yoti-1.8.0 lib/yoti/share/extra_data.rb
yoti-1.7.1 lib/yoti/share/extra_data.rb
yoti-1.7.0 lib/yoti/share/extra_data.rb
yoti-1.6.4 lib/yoti/share/extra_data.rb
yoti-1.6.3 lib/yoti/share/extra_data.rb
yoti-1.6.2 lib/yoti/share/extra_data.rb
yoti-1.6.1 lib/yoti/share/extra_data.rb
yoti-1.6.0 lib/yoti/share/extra_data.rb