Class: HybridAnalysis::API

Inherits:
Object
  • Object
show all
Defined in:
lib/hybridanalysis/api.rb

Instance Method Summary collapse

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_reportsObject



9
10
11
# File 'lib/hybridanalysis/api.rb', line 9

def abuse_reports
  @abuse_reports ||= Clients::AbuseReports.new(@key)
end

#feedObject



13
14
15
# File 'lib/hybridanalysis/api.rb', line 13

def feed
  @feed ||= Clients::Feed.new(@key)
end

#file_collectionObject



17
18
19
# File 'lib/hybridanalysis/api.rb', line 17

def file_collection
  @file_collection ||= Clients::FileCollection.new(@key)
end

#overviewObject



21
22
23
# File 'lib/hybridanalysis/api.rb', line 21

def overview
  @overview ||= Clients::Overview.new(@key)
end

#quick_scanObject



25
26
27
# File 'lib/hybridanalysis/api.rb', line 25

def quick_scan
  @quick_scan ||= Clients::QuickScan.new(@key)
end

#reportObject



29
30
31
# File 'lib/hybridanalysis/api.rb', line 29

def report
  @report ||= Clients::Report.new(@key)
end

#searchObject



33
34
35
# File 'lib/hybridanalysis/api.rb', line 33

def search
  @search ||= Clients::Search.new(@key)
end

#submitObject



37
38
39
# File 'lib/hybridanalysis/api.rb', line 37

def submit
  @submit ||= Clients::Submit.new(@key)
end

#systemObject



41
42
43
# File 'lib/hybridanalysis/api.rb', line 41

def system
  @system ||= Clients::System.new(@key)
end