Sha256: 83e16eb3d17b0cd55368644a879874088ae2ba8a5f71a39ff2d1ea6270b66271
Contents?: true
Size: 288 Bytes
Versions: 2
Compression:
Stored size: 288 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
onyphe-1.1.0 | lib/onyphe/clients/md5.rb |
onyphe-1.0.0 | lib/onyphe/clients/md5.rb |