Class: AutoTagging::Alchemy

Inherits:
Object
  • Object
show all
Defined in:
lib/auto_tagging/alchemy.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.api_keyObject

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 get_tags(opts)
  tags = AlchemyAPI.search(:keyword_extraction, src_options(opts)) || []
  tags.map { |tag| tag["text"] }
end