Class: Onyphe::Clients::MD5
- Inherits:
-
Onyphe::Client
- Object
- Onyphe::Client
- Onyphe::Clients::MD5
- Defined in:
- lib/onyphe/clients/md5.rb
Constant Summary
Constants inherited from Onyphe::Client
Onyphe::Client::HOST, Onyphe::Client::URL
Instance Method Summary collapse
Methods inherited from Onyphe::Client
Constructor Details
This class inherits a constructor from Onyphe::Client
Instance Method Details
#get_by_md5(md5, page = 1) ⇒ Object
6 7 8 9 10 |
# File 'lib/onyphe/clients/md5.rb', line 6 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 |