Class: AutoTagging::Alchemy
- Inherits:
-
Object
- Object
- AutoTagging::Alchemy
- Defined in:
- lib/auto_tagging/alchemy.rb
Class Attribute Summary collapse
-
.api_key ⇒ Object
Returns the value of attribute api_key.
Instance Method Summary collapse
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
7 8 9 |
# File 'lib/auto_tagging/alchemy.rb', line 7 def api_key @api_key end |
Instance Method Details
#get_tags(opts) ⇒ Object
14 15 16 17 |
# File 'lib/auto_tagging/alchemy.rb', line 14 def (opts) = AlchemyAPI.search(:keyword_extraction, (opts)) || [] .map { |tag| tag["text"] } end |