Sha256: 71e00199133bc12719d0920783fb55feaa86c5cdbc5b2ad76e5a31b497b6caca
Contents?: true
Size: 428 Bytes
Versions: 1
Compression:
Stored size: 428 Bytes
Contents
require 'verified/check' Verified = Class.new class Verified::Passport def initialize(mrz_line_1, mrz_line_2) checker = Check.new @data = checker.check(mrz_line_1, mrz_line_2) end def verified? return false if @data == false return true 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
verified-1.2.0 | lib/verified.rb |