lib/mihari/clients/hunterhow.rb in mihari-5.6.2 vs lib/mihari/clients/hunterhow.rb in mihari-5.7.0
- old
+ new
@@ -2,10 +2,13 @@
require "base64"
module Mihari
module Clients
+ #
+ # hunter.how API client
+ #
class HunterHow < Base
PAGE_SIZE = 100
# @return [String]
attr_reader :api_key
@@ -36,11 +39,11 @@
# @param [Integer] page Default 1, Maximum: 500
# @param [Integer] page_size Default 100, Maximum: 100
# @param [String] start_time
# @param [String] end_time
#
- # @return [Structs::HunterHow::Response]
+ # @return [Mihari::Structs::HunterHow::Response]
#
def search(query, start_time:, end_time:, page: 1, page_size: PAGE_SIZE)
params = {
query: Base64.urlsafe_encode64(query),
page: page,
@@ -58,10 +61,10 @@
# @param [Integer] page_size Default 100, Maximum: 100
# @param [Integer] pagination_limit
# @param [String] start_time
# @param [String] end_time
#
- # @return [Enumerable<Structs::HunterHow::Response>]
+ # @return [Enumerable<Mihari::Structs::HunterHow::Response>]
#
def search_with_pagination(
query,
start_time:,
end_time:,