Sha256: ad854553b7f2020689db1bf9ceef68b7cd02f00d5d07874788c20b186f1c2977
Contents?: true
Size: 442 Bytes
Versions: 2
Compression:
Stored size: 442 Bytes
Contents
module Verified class DVLALicense private def initialize(license_number) checker = DVLA::Check.new @data = checker.check(license_number) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
verified-1.3.3 | lib/verified/dvlalicense.rb |
verified-1.3.1 | lib/verified/dvlalicense.rb |