Class: Biffbot::Analyze

Inherits:
Base
  • Object
show all
Defined in:
lib/biffbot/analyze.rb

Instance Method Summary collapse

Methods inherited from Base

#generate_url, #parse, #parse_options

Constructor Details

#initialize(url, options = {}, token = Biffbot.token) ⇒ Hash

a new instance of Biffbot::Analyze

Examples:

Biffbot::Analyze('http://www.nytimes.com', mode: 'article', timeout: 60) => {SOME_HASH}

Parameters:

  • url (String)

    The url to analyze

  • options (Hash) (defaults to: {})

    An hash of options

  • token (String) (defaults to: Biffbot.token)

    Override Biffbot.token with another token


12
13
14
# File 'lib/biffbot/analyze.rb', line 12

def initialize url, options = {}, token = Biffbot.token
  parse(token, 'analyze', url, options)
end