Sha256: 012861033ab22af7678700e24a4f8a0c42ab1d307c4f7036f95ba545a7ec0188
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
module Onfido class API def method_missing(method, *args) klass = method.to_s.split('_').collect(&:capitalize).join Object.const_get("Onfido::#{klass}").new rescue NameError super end def respond_to_missing?(method, include_private = false) klass = method.to_s.capitalize Object.const_get("Onfido::#{klass}") true rescue NameError super end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onfido-0.6.1 | lib/onfido/api.rb |