Sha256: 5d7397a12fe96cd2dd0e85d58e6529ac5f0068084bd8f4d252730ea40020cd22
Contents?: true
Size: 517 Bytes
Versions: 6
Compression:
Stored size: 517 Bytes
Contents
module DataSift class ManagedSourceResource < DataSift::ApiResource def add(id, resources, validate = 'true') params = { id: id, validate: validate } params.merge!({:resources => resources}) DataSift.request(:PUT, 'source/resource/add', @config, params) end def remove(id, resource_ids) params = {id: id} params.merge!({:resource_ids => resource_ids}) DataSift.request(:PUT, 'source/resource/remove', @config, params) end end end
Version data entries
6 entries across 6 versions & 1 rubygems