Module: FacebookAds::NodeHasNoID

Defined in:
lib/facebook_ads/helpers/node_helpers.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



39
40
41
42
43
44
45
46
# File 'lib/facebook_ads/helpers/node_helpers.rb', line 39

def self.included(base)
  base.send(:include, NodeHasNoGet)
  base.instance_eval do
    def get(id, *args)
      raise '#get is not supported for this object'
    end
  end
end

Instance Method Details

#idObject



48
49
50
# File 'lib/facebook_ads/helpers/node_helpers.rb', line 48

def id
  raise 'This node has no id'
end