Sha256: 1c51291bcef1d8f6a1bb2d48eb457e32ddd17c9426dfee9ee0ae39bf454781eb

Contents?: true

Size: 652 Bytes

Versions: 1

Compression:

Stored size: 652 Bytes

Contents

module AAMVA
  class Header
    attr_reader :number_of_entries, :jurisdiction_version_number, :issuer_identification_number

    def initialize(number_of_entries:, jurisdiction_version_number:, issuer_identification_number:)
      @number_of_entries = number_of_entries
      @jurisdiction_version_number = jurisdiction_version_number
      @issuer_identification_number = issuer_identification_number
    end

    def ==(other)
      number_of_entries == other.number_of_entries &&
        jurisdiction_version_number == other.jurisdiction_version_number &&
        issuer_identification_number == other.issuer_identification_number
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aamva-0.2.0 lib/aamva/header.rb