Class: Tavily::CrawlResult

Inherits:
Object
  • Object
show all
Defined in:
lib/tavily/responses.rb

Overview

A single page discovered by Tavily::Client#crawl.

Instance Attribute Summary

Attributes inherited from Object

#attributes

Instance Method Summary collapse

Methods inherited from Object

#==, #[], attribute, #dig, #hash, #initialize, #inspect, #key?, #to_h

Constructor Details

This class inherits a constructor from Tavily::Object

Instance Method Details

#faviconString?

Returns favicon URL (when include_favicon: true).

Returns:

  • (String, nil)

    favicon URL (when include_favicon: true).



124
# File 'lib/tavily/responses.rb', line 124

attribute :favicon

#raw_contentString?

Returns extracted content (markdown or text).

Returns:

  • (String, nil)

    extracted content (markdown or text).



122
# File 'lib/tavily/responses.rb', line 122

attribute :raw_content

#urlString?

Returns page URL.

Returns:

  • (String, nil)

    page URL.



120
# File 'lib/tavily/responses.rb', line 120

attribute :url