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