Sha256: 40597f692256ee4c6b2ff7df42b4dfe859b0cbabf96a5e091c062e92edefbe58
Contents?: true
Size: 991 Bytes
Versions: 1
Compression:
Stored size: 991 Bytes
Contents
# frozen_string_literal: true module SecurityTrails module Clients class General < Client # # You can use this simple endpoint to test your authentication and access to the SecurityTrails API. # # @see https://docs.securitytrails.com/reference#ping # # @return [Hash] # def ping get("/ping") { |json| json } end # # Usage # # @see https://docs.securitytrails.com/reference#usage # # @return [Hash] # def usage get("/account/usage") { |json| json } end # # A fast and easy way to fetch many results. Currently only available for the DSL API endpoints. # # @see https://docs.securitytrails.com/reference#scroll # # @param [String] The scroll_id returned in the scroll request. # # @return [Hash] # def scroll(scroll_id) get("/scroll/#{scroll_id}") { |json| json } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
securitytrails-1.0.0 | lib/securitytrails/clients/general.rb |