Class: TermExtraction
- Inherits:
-
Object
- Object
- TermExtraction
- Defined in:
- lib/term_extraction.rb,
lib/term_extraction/yahoo.rb,
lib/term_extraction/zemanta.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#context ⇒ Object
Returns the value of attribute context.
Instance Method Summary collapse
- #canonical_name ⇒ Object
-
#initialize(options = {}) ⇒ TermExtraction
constructor
A new instance of TermExtraction.
Constructor Details
#initialize(options = {}) ⇒ TermExtraction
Returns a new instance of TermExtraction.
4 5 6 7 |
# File 'lib/term_extraction.rb', line 4 def initialize(={}) @context = [:context] @api_key = [:api_key] end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
2 3 4 |
# File 'lib/term_extraction.rb', line 2 def api_key @api_key end |
#context ⇒ Object
Returns the value of attribute context.
2 3 4 |
# File 'lib/term_extraction.rb', line 2 def context @context end |
Instance Method Details
#canonical_name ⇒ Object
9 10 11 |
# File 'lib/term_extraction.rb', line 9 def canonical_name self.class.canonical_name end |