module Supercast::Operations::Feeds::ClassMethods
Public Instance Methods
activate(id, opts = {})
click to toggle source
Enables the feeds of the identified resource with the passed in parameters.
Attributes¶ ↑
-
id
- ID of the resource to activate the feeds for. -
opts
- A Hash of additional options to be added to the request.
# File lib/supercast/operations/feeds.rb, line 13 def activate(id, opts = {}) params = { feed_token: { state: 'active' } } request(:patch, "#{resource_url}/#{id}", params, opts) true end
deactivate(id, opts = {})
click to toggle source
Deactivate the feeds of the identified resource with the passed in parameters.
Attributes¶ ↑
-
id
- ID of the resource to deactivate the feeds for. -
opts
- A Hash of additional options to be added to the request.
# File lib/supercast/operations/feeds.rb, line 37 def deactivate(id, opts = {}) params = { feed_token: { state: 'inactive' } } request(:patch, "#{resource_url}/#{id}", params, opts) true end
suspend(id, opts = {})
click to toggle source
Suspends the feeds of the identified resource with the passed in parameters.
Attributes¶ ↑
-
id
- ID of the resource to suspend the feeds for. -
opts
- A Hash of additional options to be added to the request.
# File lib/supercast/operations/feeds.rb, line 25 def suspend(id, opts = {}) params = { feed_token: { state: 'suspended' } } request(:patch, "#{resource_url}/#{id}", params, opts) true end