Sha256: 540e562c0f06285d53e8bb4e91493624af2c50a22de238df9ae544fd33367547
Contents?: true
Size: 289 Bytes
Versions: 4
Compression:
Stored size: 289 Bytes
Contents
# frozen_string_literal: true module Onyphe module Clients class MD5 < Client def get_by_md5(md5, page = 1) raise ArgumentError, "Invalid md5: #{md5}" unless Validator.valid_md5?(md5) get("/md5/#{md5}", page: page) { |json| json } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
onyphe-0.2.3 | lib/onyphe/clients/md5.rb |
onyphe-0.2.2 | lib/onyphe/clients/md5.rb |
onyphe-0.2.1 | lib/onyphe/clients/md5.rb |
onyphe-0.2.0 | lib/onyphe/clients/md5.rb |