class SuperfeedrEngine::Engine
Public Class Methods
list(opts = {})
click to toggle source
Calls superclass method
# File lib/superfeedr_engine/engine.rb, line 57 def self.list(opts = {}) super(opts) end
replay(object, opts = {})
click to toggle source
Calls superclass method
# File lib/superfeedr_engine/engine.rb, line 69 def self.replay(object, opts = {}) raise "Missing url method or property on #{object}" unless object.class.method_defined? :url raise "Missing id method or property on #{object}" unless object.class.method_defined? :id raise "#{object}#url needs to be a URL" unless valid?(object.url) raise "#{object}#id needs to not empty" if object.id.to_s.empty? super(object.url, object.id, opts) end
retrieve(object, opts = {})
click to toggle source
# File lib/superfeedr_engine/engine.rb, line 36 def self.retrieve(object, opts = {}) raise "Missing url method or property on #{object}" unless object.class.method_defined? :url raise "#{object}#url needs to be a URL" unless valid?(object.url) opts.merge!({ format: 'json' # Force the use of the JSON }); self.retrieve_by_topic_url(object.url, opts) end
search(query, opts = {})
click to toggle source
Calls superclass method
# File lib/superfeedr_engine/engine.rb, line 61 def self.search(query, opts = {}) opts.merge!({ format: 'json' # Force the use of the JSON }); super(query, opts) end
subscribe(object, opts = {})
click to toggle source
Calls superclass method
# File lib/superfeedr_engine/engine.rb, line 19 def self.subscribe(object, opts = {}) raise "Missing url method or property on #{object}" unless object.class.method_defined? :url raise "Missing id method or property on #{object}" unless object.class.method_defined? :id raise "Missing secret method or property #{object}" unless object.class.method_defined? :id raise "#{object}#url needs to be a URL" unless valid?(object.url) raise "#{object}#id needs to not empty" if object.id.to_s.empty? raise "#{object}#secret needs to not empty" if object.secret.to_s.empty? opts.merge!({ secret: object.secret, format: 'json' # Force the use of the JSON }); super(object.url, object.id, opts) end
unsubscribe(object, opts = {})
click to toggle source
Calls superclass method
# File lib/superfeedr_engine/engine.rb, line 47 def self.unsubscribe(object, opts = {}) raise "Missing url method or property on #{object}" unless object.class.method_defined? :url raise "Missing id method or property on #{object}" unless object.class.method_defined? :id raise "#{object}#url needs to be a URL" unless valid?(object.url) raise "#{object}#id needs to not empty" if object.id.to_s.empty? super(object.url, object.id, opts) end