Class: SecurityTrails::Clients::General
- Inherits:
-
SecurityTrails::Client
- Object
- SecurityTrails::Client
- SecurityTrails::Clients::General
- Defined in:
- lib/securitytrails/clients/general.rb
Constant Summary
Constants inherited from SecurityTrails::Client
SecurityTrails::Client::API_KEY_HEADER, SecurityTrails::Client::HOST, SecurityTrails::Client::URL, SecurityTrails::Client::VERSION
Instance Attribute Summary
Attributes inherited from SecurityTrails::Client
Instance Method Summary collapse
-
#ping ⇒ Hash
You can use this simple endpoint to test your authentication and access to the SecurityTrails API.
-
#scroll(scroll_id) ⇒ Hash
A fast and easy way to fetch many results.
-
#usage ⇒ Hash
Usage.
Methods inherited from SecurityTrails::Client
Constructor Details
This class inherits a constructor from SecurityTrails::Client
Instance Method Details
#ping ⇒ Hash
You can use this simple endpoint to test your authentication and access to the SecurityTrails API.
13 14 15 |
# File 'lib/securitytrails/clients/general.rb', line 13 def ping get("/ping") { |json| json } end |
#scroll(scroll_id) ⇒ Hash
A fast and easy way to fetch many results. Currently only available for the DSL API endpoints.
37 38 39 |
# File 'lib/securitytrails/clients/general.rb', line 37 def scroll(scroll_id) get("/scroll/#{scroll_id}") { |json| json } end |
#usage ⇒ Hash
Usage
24 25 26 |
# File 'lib/securitytrails/clients/general.rb', line 24 def usage get("/account/usage") { |json| json } end |