Class: Tavily::Usage

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

Overview

Credit usage information, present when include_usage: true is requested.

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

#creditsInteger?

Returns number of API credits consumed by the request.

Returns:

  • (Integer, nil)

    number of API credits consumed by the request.



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

attribute :credits