Class: Raven::Domain
- Inherits:
-
Object
- Object
- Raven::Domain
- Defined in:
- lib/rb_raven_api/domain.rb
Class Method Summary collapse
-
.add(domain, engine_id = '1,2,3', cstm = {}) ⇒ Object
This request will add the domain provided.
-
.all(cstm = {}) ⇒ Array
Your account domains.
-
.info(domain, cstm = {}) ⇒ Object
This request will return the search engines for the domain provided.
-
.keywords(domain, cstm = {}) ⇒ Object
This request will return the available keywords for the domain provided.
-
.keywords_with_tags(domain, cstm = {}) ⇒ Object
This request will return the available keywords for the domain provided.
Class Method Details
.add(domain, engine_id = '1,2,3', cstm = {}) ⇒ Object
This request will add the domain provided.
22 23 24 |
# File 'lib/rb_raven_api/domain.rb', line 22 def self.add domain, engine_id = '1,2,3', cstm = {} Raven.http.get '', { method: 'add_domain', domain: domain, engine_id: engine_id }.merge(cstm) end |
.all(cstm = {}) ⇒ Array
Your account domains.
11 12 13 |
# File 'lib/rb_raven_api/domain.rb', line 11 def self.all cstm = {} Raven.http.get '', { method: 'domains' }.merge(cstm) end |
.info(domain, cstm = {}) ⇒ Object
This request will return the search engines for the domain provided.
52 53 54 |
# File 'lib/rb_raven_api/domain.rb', line 52 def self.info domain, cstm = {} Raven.http.get '', { method: 'domain_info', domain: domain }.merge(cstm) end |