Sha256: 6cf02a776319fe58d79608175c567357e030ccf8186f32e072d825a4f4c4ae4f
Contents?: true
Size: 548 Bytes
Versions: 2
Compression:
Stored size: 548 Bytes
Contents
require "dotenv/load" module Pulsedive class API attr_reader :api_key attr_reader :indicator attr_reader :threat attr_reader :feed attr_reader :analyze def initialize(api_key = ENV["PULSEDIVE_API_KEY"]) raise(ArgumentError, "'api_key' argument is required") unless api_key @indicator = Indicator.new(api_key) @threat = Threat.new(api_key) @feed = Feed.new(api_key) @analyze = Analyze.new(api_key) end def search(params) Search.new(api_key).search(params) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pulsedive-0.1.1 | lib/pulsedive/api.rb |
pulsedive-0.1.0 | lib/pulsedive/api.rb |