class SecurityTrails::API
Attributes
api_key[R]
Public Class Methods
new(api_key = ENV["SECURITYTRAILS_API_KEY"])
click to toggle source
# File lib/securitytrails/api.rb, line 11 def initialize(api_key = ENV["SECURITYTRAILS_API_KEY"]) @api_key = api_key raise ArgumentError, "'api_key' argument is required" unless api_key end
Public Instance Methods
domain()
click to toggle source
Domain API
client
@return [SecurityTrails::Clients::Domain]
# File lib/securitytrails/api.rb, line 35 def domain @domain ||= Clients::Domain.new(api_key) end
domains()
click to toggle source
Domains API
client
@return [SecurityTrails::Clients::Domains]
# File lib/securitytrails/api.rb, line 44 def domains @domains ||= Clients::Domains.new(api_key) end
feeds()
click to toggle source
Feed API
client
@return [SecurityTrails::Clients::Feeds]
# File lib/securitytrails/api.rb, line 71 def feeds @feeds ||= Clients::Feeds.new(api_key) end
general()
click to toggle source
General API
client
@return [SecurityTrails::Clients::General]
# File lib/securitytrails/api.rb, line 21 def general @general ||= Clients::General.new(api_key) end
history()
click to toggle source
History API
client
@return [SecurityTrails::Clients::History]
# File lib/securitytrails/api.rb, line 53 def history @history ||= Clients::History.new(api_key) end
ips()
click to toggle source
IPs API
client
@return [SecurityTrails::Clients::IPs]
# File lib/securitytrails/api.rb, line 62 def ips @ips ||= Clients::IPs.new(api_key) end