Method: FacebookAds::BatchProxy#method_missing

Defined in:
lib/facebook_ads/batch_api/batch_proxy.rb

#method_missing(method_name, *args, &block) ⇒ Object



38
39
40
41
42
43
44
45
46
47
48
# File 'lib/facebook_ads/batch_api/batch_proxy.rb', line 38

def method_missing(method_name, *args, &block)
  if @loaded
    if @result
      @result.__send__(method_name, *args, &block)
    else
      ::Object.send(:raise, @exception)
    end
  else
    __attr_ref(method_name)
  end
end