Sha256: 319ddbb163ebdbe5f1a54c4fed78022dc22f2f9cb9290c3ba80b37d4321f7e08
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
# frozen_string_literal: true module Spyse module Client class AS < Base # # Lists AS # # @see https://spyse.com/api#/as/as # # @return [Hash] # def get(asn) _get("/as/#{asn}") { |json| json } end # # Lists ASs # # @see https://spyse.com/api#/as/as_search # # @return [Hash] # 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spysex-0.2.0 | lib/spyse/clients/as.rb |