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



51
52
53
54
55
56
57
58
# File 'lib/facebook_ads/helpers/node_helpers.rb', line 51

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



60
61
62
# File 'lib/facebook_ads/helpers/node_helpers.rb', line 60

def id
  raise 'This node has no id'
end