class BinaryEdge::API
Attributes
api_key[R]
Public Class Methods
new(api_key = ENV["BINARYEDGE_API_KEY"])
click to toggle source
# File lib/binaryedge/api.rb, line 7 def initialize(api_key = ENV["BINARYEDGE_API_KEY"]) @api_key = api_key raise ArgumentError, "No API key has been found or provided!" unless api_key end
Public Instance Methods
data_leaks()
click to toggle source
# File lib/binaryedge/api.rb, line 24 def data_leaks @data_leaks ||= Client::DataLeaks.new(api_key) end
domains()
click to toggle source
# File lib/binaryedge/api.rb, line 36 def domains @domains ||= Client::Domains.new(api_key) end
host()
click to toggle source
# File lib/binaryedge/api.rb, line 16 def host @host ||= Client::Host.new(api_key) end
image()
click to toggle source
# File lib/binaryedge/api.rb, line 20 def image @image ||= Client::Image.new(api_key) end
risk_score()
click to toggle source
# File lib/binaryedge/api.rb, line 32 def risk_score @risk_score ||= Client::RiskScore.new(api_key) end
sensors()
click to toggle source
# File lib/binaryedge/api.rb, line 40 def sensors @sensors ||= Client::Sensors.new(api_key) end
torrent()
click to toggle source
# File lib/binaryedge/api.rb, line 28 def torrent @torrent ||= Client::Torrent.new(api_key) end
user()
click to toggle source
# File lib/binaryedge/api.rb, line 12 def user @user ||= Client::User.new(api_key) end