module Adparlor::Facebook::GraphApi::Traits::Methods
Public Class Methods
included(base)
click to toggle source
# File lib/adparlor/facebook/graph_api/traits/methods.rb, line 6 def self.included(base) base.extend(ClassMethods) end
Public Instance Methods
create(attributes = {}, options = {})
click to toggle source
Calls superclass method
# File lib/adparlor/facebook/graph_api/traits/methods.rb, line 10 def create(attributes = {}, options = {}) allowed_methods = self.class.allowed_methods raise FbError.new('create not available', 500) unless allowed_methods && allowed_methods.include?(:create) super(attributes, options) end
destroy(path, options = {})
click to toggle source
Calls superclass method
# File lib/adparlor/facebook/graph_api/traits/methods.rb, line 16 def destroy(path, options = {}) allowed_methods = self.class.allowed_methods raise FbError.new('destroy not available', 500) unless allowed_methods && allowed_methods.include?(:destroy) super(path, options) end
update(attributes = {}, options = {})
click to toggle source
Calls superclass method
# File lib/adparlor/facebook/graph_api/traits/methods.rb, line 22 def update(attributes = {}, options = {}) allowed_methods = self.class.allowed_methods raise FbError.new('update not available', 500) unless allowed_methods && allowed_methods.include?(:update) super(attributes, options) end