Sha256: 962dd499e3e3309a07db1bdea56759d9ca46435ee2615d5596ee937f281ccb46
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
module Gnip module API def add(rules) options = ActiveSupport::JSON.encode( {:rules => rules} ) puts options Gnip::Response.new self.class.post('/rules.json', :body => options ) end def remove( rules ) options = ActiveSupport::JSON.encode( {:rules => rules} ) Gnip::Response.new self.class.delete('/rules.json', :body => options ) end def list Gnip::Response.new self.class.get( '/rules.json' ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gnip-rules-1.2.0 | lib/gnip-rules/api.rb |