technekes/alchemy-api-rb

View on GitHub
lib/alchemy-api/title_extraction.rb

Summary

Maintainability
A
0 mins
Test Coverage
module AlchemyAPI
  class TitleExtraction < Base
    Config.add_mode :title_extraction, self

    def web_method
      "#{method_prefix}GetTitle"
    end

    private

    def supported_search_types
      %i(url html)
    end

    def indexer
      'title'
    end
  end
end