lib/powertrack/streaming/stream.rb
def delete_rules(*rules)
      # v2 does not use DELETE anymore
      delete_verb = :post
      # flatten the rules in case it was provided as an array
      delete_options = { body: MultiJson.encode('rules' => rules.flatten) }
      # v2 uses a query parameter
      delete_options[:query] = { '_method' => 'delete' }

      make_rules_request(delete_verb, delete_options)
    end
# Removes the specified rules from the stream.
#
# <tt>DELETE /rules</tt>
#
# See http://support.gnip.com/apis/powertrack/api_reference.html#DeleteRules
Removes the specified rules from the stream.
DELETE /rules


Removes the specified rules from the stream . DELETE / rules
def delete_rules(*rules)
      delete_verb = :post
      delete_options = { body: MultiJson.encode('rules' => rules.flatten) }
      delete_options[:query] = { '_method' => 'delete' }
      make_rules_request(delete_verb, delete_options)
    end
def delete_rules ( * rules ) delete_verb = :post delete_options = { body : MultiJson . encode ( 'rules' => rules . flatten ) } delete_options [ :query ] = { '_method' => 'delete' } make_rules_request ( delete_verb , delete_options ) end
Removes the specified rules from the stream.
Removes the specified rules from the stream .
# v2 does not use DELETE anymore # flatten the rules in case it was provided as an array # v2 uses a query parameter
rules