Module: OFX::FFI::ValidAccess

Included in:
AccountData, TransactionData
Defined in:
lib/ofx/ffi/valid_access.rb

Class Method Summary collapse

Class Method Details

.included(c) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/ofx/ffi/valid_access.rb', line 4

def self.included(c)
  class_eval do
    def method_missing(attribute, *args)
      self[:"#{attribute}_valid"] == 1 ? self[attribute] : nil
    end
  end
end