Class: OTX::File
Instance Method Summary collapse
Methods inherited from Base
#get, #initialize, #patch, #post
Constructor Details
This class inherits a constructor from OTX::Base
Instance Method Details
#get_analysis(file_hash) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/otx_ruby/file.rb', line 13 def get_analysis(file_hash) uri = "/api/v1/indicators/file/#{file_hash}/analysis" json_data = get(uri) analysis = OTX::Indicator::FileAnalysis.new(json_data) return analysis end |