Sha256: 1f7a98c7ecfa076b73054f7be058b2f2630025c4a4414dcde79c4094cc6c222e
Contents?: true
Size: 454 Bytes
Versions: 3
Compression:
Stored size: 454 Bytes
Contents
module Verified class Passport private def initialize(mrz_line_1, mrz_line_2) checker = MRZ::Check.new @data = checker.check(mrz_line_1, mrz_line_2) end def method_missing(name, *args, &blk) if args.empty? && blk.nil? && @data.has_key?(name.to_s) @data[name.to_s] else super end end public def verified? return true if @data != false return false end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
verified-1.3.3 | lib/verified/passport.rb |
verified-1.3.1 | lib/verified/passport.rb |
verified-1.3.0 | lib/verified/passport.rb |