class SecurityTrails::Clients::General

Public Instance Methods

ping() click to toggle source

You can use this simple endpoint to test your authentication and access to the SecurityTrails API.

@see docs.securitytrails.com/reference#ping

@return [Hash]

# File lib/securitytrails/clients/general.rb, line 13
def ping
  get("/ping") { |json| json }
end
scroll(scroll_id) click to toggle source

A fast and easy way to fetch many results. Currently only available for the DSL API endpoints.

@see docs.securitytrails.com/reference#scroll

@param [String] The scroll_id returned in the scroll request.

@return [Hash]

# File lib/securitytrails/clients/general.rb, line 37
def scroll(scroll_id)
  get("/scroll/#{scroll_id}") { |json| json }
end
usage() click to toggle source

Usage

@see docs.securitytrails.com/reference#usage

@return [Hash]

# File lib/securitytrails/clients/general.rb, line 24
def usage
  get("/account/usage") { |json| json }
end