Class: Raven::Keyword

Inherits:
Object
  • Object
show all
Defined in:
lib/rb_raven_api/keyword.rb

Class Method Summary collapse

Class Method Details

.add(domain, keyword, cstm = {}) ⇒ Object

This request will add keyword to the domain provided.

Parameters:

  • domain (String)

    Required - The domain you want the keyword to be added to.

  • keyword (String)

    Required - The keyword you are adding.



12
13
14
# File 'lib/rb_raven_api/keyword.rb', line 12

def self.add domain, keyword, cstm = {}
  Raven.http.get '', { method: 'add_keyword', domain: domain, keyword: keyword }.merge(cstm)
end

.remove(domain, keyword, cstm = {}) ⇒ Object

This request will remove a keyword from the domain provided.

Parameters:

  • domain (String)

    Required - The domain you want the keyword to be removed from.

  • keyword (String)

    Required - The keyword you are removing.



23
24
25
# File 'lib/rb_raven_api/keyword.rb', line 23

def self.remove domain, keyword, cstm = {}
  Raven.http.get '', { method: 'remove_keyword', domain: domain, keyword: keyword }.merge(cstm)
end