class Veriff::Model
Public Class Methods
api_collection_name()
click to toggle source
# File lib/veriff/model.rb, line 18 def self.api_collection_name "#{name.gsub('Veriff::', '').downcase}s" end
new(data_hash)
click to toggle source
# File lib/veriff/model.rb, line 5 def initialize(data_hash) data_hash.fetch(:id) @data_hash = data_hash end
Public Instance Methods
method_missing(method_name, *_args)
click to toggle source
Calls superclass method
# File lib/veriff/model.rb, line 14 def method_missing(method_name, *_args) @data_hash.key?(method_name) ? @data_hash[method_name] : super end
respond_to_missing?(method_name, include_private = false)
click to toggle source
Calls superclass method
# File lib/veriff/model.rb, line 10 def respond_to_missing?(method_name, include_private = false) @data_hash.key?(method_name) || super end