Class: HybridAnalysis::API
- Inherits:
-
Object
- Object
- HybridAnalysis::API
- Defined in:
- lib/hybridanalysis/api.rb
Instance Method Summary collapse
- #abuse_reports ⇒ Object
- #feed ⇒ Object
- #file_collection ⇒ Object
-
#initialize(key: ENV["HYBRIDANALYSIS_API_KEY"] || ENV["HA_API_KEY"]) ⇒ API
constructor
A new instance of API.
- #overview ⇒ Object
- #quick_scan ⇒ Object
- #report ⇒ Object
- #search ⇒ Object
- #submit ⇒ Object
- #system ⇒ Object
Constructor Details
#initialize(key: ENV["HYBRIDANALYSIS_API_KEY"] || ENV["HA_API_KEY"]) ⇒ API
Returns a new instance of API.
5 6 7 |
# File 'lib/hybridanalysis/api.rb', line 5 def initialize(key: ENV["HYBRIDANALYSIS_API_KEY"] || ENV["HA_API_KEY"]) @key = key end |
Instance Method Details
#abuse_reports ⇒ Object
9 10 11 |
# File 'lib/hybridanalysis/api.rb', line 9 def abuse_reports @abuse_reports ||= Clients::AbuseReports.new(@key) end |
#feed ⇒ Object
13 14 15 |
# File 'lib/hybridanalysis/api.rb', line 13 def feed @feed ||= Clients::Feed.new(@key) end |
#file_collection ⇒ Object
17 18 19 |
# File 'lib/hybridanalysis/api.rb', line 17 def file_collection @file_collection ||= Clients::FileCollection.new(@key) end |
#overview ⇒ Object
21 22 23 |
# File 'lib/hybridanalysis/api.rb', line 21 def overview @overview ||= Clients::Overview.new(@key) end |
#quick_scan ⇒ Object
25 26 27 |
# File 'lib/hybridanalysis/api.rb', line 25 def quick_scan @quick_scan ||= Clients::QuickScan.new(@key) end |
#report ⇒ Object
29 30 31 |
# File 'lib/hybridanalysis/api.rb', line 29 def report @report ||= Clients::Report.new(@key) end |
#search ⇒ Object
33 34 35 |
# File 'lib/hybridanalysis/api.rb', line 33 def search @search ||= Clients::Search.new(@key) end |