Class: DiffbotSimple::V2::Analyze

Inherits:
Object
  • Object
show all
Includes:
ApiHelper
Defined in:
lib/diffbot_simple/v2/analyze.rb

Overview

Instance Method Summary collapse

Methods included from ApiHelper

#initialize

Instance Method Details

#post_initializeObject



5
6
7
# File 'lib/diffbot_simple/v2/analyze.rb', line 5

def post_initialize
	@api = :analyze
end

#single_analysis(url: nil, **options) ⇒ Object Also known as: single_analyze



12
13
14
15
# File 'lib/diffbot_simple/v2/analyze.rb', line 12

def single_analysis url: nil, **options
	raise ArgumentError.new "Must pass an url to fetch" unless url
	execute_call options.merge(url: url)
end

#to_crawl_api_urlObject



8
9
10
11
# File 'lib/diffbot_simple/v2/analyze.rb', line 8

def to_crawl_api_url
	default = super
	"#{default}?mode=auto"
end