class OTX::File
Public Instance Methods
get_analysis(file_hash)
click to toggle source
# 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
get_general(file_hash)
click to toggle source
# File lib/otx_ruby/file.rb, line 3 def get_general(file_hash) uri = "/api/v1/indicators/file/#{file_hash}/general" json_data = get(uri) general = OTX::Indicator::IP::General.new(json_data) return general end