Class: SemanticHacker::Category

Inherits:
Api
  • Object
show all
Defined in:
lib/semantic_hacker/category.rb

Instance Attribute Summary

Attributes inherited from Api

#api_key

Class Method Summary collapse

Methods inherited from Api

about, generate

Class Method Details

.content(data) ⇒ Object



12
13
14
15
16
# File 'lib/semantic_hacker/category.rb', line 12

def self.content data
  options = {:query => { :content => data }}
  @data = get('/category', options)
  return generate
end

.content_path ⇒ Object



3
4
5
# File 'lib/semantic_hacker/category.rb', line 3

def self.content_path
  %w(categorizer categorizerResponse categories)
end

.uri(data) ⇒ Object



6
7
8
9
10
# File 'lib/semantic_hacker/category.rb', line 6

def self.uri data
  options = {:query => { :uri => data }}
  @data = get('/category', options)
  return generate
end