Class: Spyse::Client::AS
Constant Summary
Constants inherited from Base
Base::BASE_URL, Base::HOST, Base::VERSION
Instance Method Summary collapse
-
#get(asn, limit: nil, offset: nil) ⇒ Hash
Lists AS.
-
#search(search_params, limit: nil, offset: nil) ⇒ Hash
Lists ASs.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Spyse::Client::Base
Instance Method Details
#get(asn, limit: nil, offset: nil) ⇒ Hash
Lists AS
13 14 15 16 17 18 |
# File 'lib/spyse/clients/as.rb', line 13 def get(asn, limit: nil, offset: nil) params = { asn: asn, limit: limit, offset: offset, }.compact _get("/as", params) { |json| json } end |
#search(search_params, limit: nil, offset: nil) ⇒ Hash
Lists ASs
27 28 29 30 31 32 |
# File 'lib/spyse/clients/as.rb', line 27 def search(search_params, limit: nil, offset: nil) params = { search_params: search_params, limit: limit, offset: offset, }.compact _post("/as/search", params) { |json| json } end |