Class: Tenable::Resources::Base

Inherits:
Object
  • Object
show all
Includes:
Pollable
Defined in:
lib/tenable/resources/base.rb

Overview

Base class for all API resource classes. Provides HTTP helpers and response handling with automatic error mapping.

Direct Known Subclasses

AssetExports, Exports, Scans, Vulnerabilities, WebAppScans

Instance Method Summary collapse

Methods included from Pollable

#poll_until

Constructor Details

#initialize(connection) ⇒ Base

Returns a new instance of Base.

Parameters:

  • connection (Connection)

    an initialized API connection



11
12
13
# File 'lib/tenable/resources/base.rb', line 11

def initialize(connection)
  @connection = connection
end