Class: TermExtraction

Inherits:
Object
  • Object
show all
Defined in:
lib/term_extraction.rb,
lib/term_extraction/yahoo.rb,
lib/term_extraction/zemanta.rb

Direct Known Subclasses

Yahoo, Zemanta

Defined Under Namespace

Classes: Yahoo, Zemanta

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ TermExtraction

Returns a new instance of TermExtraction.



4
5
6
7
# File 'lib/term_extraction.rb', line 4

def initialize(options={})
  @context = options[:context]
  @api_key = options[:api_key]
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



2
3
4
# File 'lib/term_extraction.rb', line 2

def api_key
  @api_key
end

#contextObject

Returns the value of attribute context.



2
3
4
# File 'lib/term_extraction.rb', line 2

def context
  @context
end

Instance Method Details

#canonical_nameObject



9
10
11
# File 'lib/term_extraction.rb', line 9

def canonical_name
  self.class.canonical_name
end