Class: SemanticHacker::Concept

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

Instance Attribute Summary

Attributes inherited from Api

#api_key

Class Method Summary collapse

Methods inherited from Api

about, generate

Class Method Details

.content_path ⇒ Object



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

def self.content_path
  %w(conceptExtractor conceptExtractorResponse concepts)
end

.uri(data) ⇒ Object



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

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