Module: Finix::Verifiable

Included in:
Identity, Merchant, PaymentInstrument
Defined in:
lib/finix/resources/verifiable.rb

Instance Method Summary collapse

Instance Method Details

#verify(attrs = {}) ⇒ Object



3
4
5
6
7
# File 'lib/finix/resources/verifiable.rb', line 3

def verify(attrs={})
  attrs = attrs.attributes if attrs.is_a?(Finix::Resource)
  return self.verifications.create(attrs) unless self.verifications.nil?
  raise NotImplementedError.new 'not found `verifications` rel'
end