module Adparlor::Facebook::GraphApi::Traits::Methods::ClassMethods
Public Instance Methods
allow_local_method(*args)
click to toggle source
# File lib/adparlor/facebook/graph_api/traits/methods.rb, line 29 def allow_local_method(*args) @allowed_local_methods = args end
allow_method(*args)
click to toggle source
# File lib/adparlor/facebook/graph_api/traits/methods.rb, line 33 def allow_method(*args) @allowed_methods = args end
allowed_local_methods()
click to toggle source
# File lib/adparlor/facebook/graph_api/traits/methods.rb, line 37 def allowed_local_methods @allowed_local_methods end
allowed_methods()
click to toggle source
# File lib/adparlor/facebook/graph_api/traits/methods.rb, line 41 def allowed_methods @allowed_methods end
create(path, options = {})
click to toggle source
Calls superclass method
# File lib/adparlor/facebook/graph_api/traits/methods.rb, line 45 def create(path, options = {}) raise FbError.new('create not available', 500) unless @allowed_local_methods && @allowed_local_methods.include?(:create) super(path, options) end
destroy(path, options = {})
click to toggle source
Calls superclass method
# File lib/adparlor/facebook/graph_api/traits/methods.rb, line 50 def destroy(path, options = {}) raise FbError.new('destroy not available, use soft delete update', 500) unless @allowed_local_methods && @allowed_local_methods.include?(:destroy) super(path, options) end
update(path, options = {})
click to toggle source
Calls superclass method
# File lib/adparlor/facebook/graph_api/traits/methods.rb, line 55 def update(path, options = {}) raise FbError.new('update not available', 500) unless @allowed_local_methods && @allowed_local_methods.include?(:update) super(path, options) end